Skip to content

Commit 4aa9f99

Browse files
authored
Merge pull request #729 from devlights/format-readme
2 parents 4718a82 + fdbc0a4 commit 4aa9f99

File tree

35 files changed

+211
-180
lines changed

35 files changed

+211
-180
lines changed

examples/basic/array/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
このディレクトリには以下のサンプルがあります。
44

5-
| file | example name | note |
6-
|-----------------------------|--------------------------|--------------------------------------|
7-
| array\_basic.go | array\_basic\_usage | Goにおける配列の基本的な使い方についてのサンプルです. |
8-
| array\_copy\_from\_slice.go | array\_copy\_from\_slice | スライスから配列へコピーするサンプルです。 |
9-
| array\_ellipses | ellipses.go | 配列を ... で初期化するサンプルです. |
10-
| multidemension.go | array\_multi\_demension | Goで2次元以上の配列(スライス)を利用する方法についてのサンプルです. |
5+
| file | example name | note |
6+
| ------------------------ | --------------------- | -------------------------------------------------------------------- |
7+
| array_basic.go | array_basic_usage | Goにおける配列の基本的な使い方についてのサンプルです. |
8+
| array_copy_from_slice.go | array_copy_from_slice | スライスから配列へコピーするサンプルです。 |
9+
| array_ellipses | ellipses.go | 配列を ... で初期化するサンプルです. |
10+
| multidemension.go | array_multi_demension | Goで2次元以上の配列(スライス)を利用する方法についてのサンプルです. |

examples/basic/base64op/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
このディレクトリには以下のサンプルがあります。
44

5-
| file | example name | note |
6-
|-----------|------------------|------------------------------------|
7-
| encode.go | base64op\_encode | base64.StdEncoding.Encode のサンプルです. |
8-
| decode.go | base64op\_decode | base64.StdEncoding.Decode のサンプルです. |
5+
| file | example name | note |
6+
| --------- | --------------- | ----------------------------------------- |
7+
| encode.go | base64op_encode | base64.StdEncoding.Encode のサンプルです. |
8+
| decode.go | base64op_decode | base64.StdEncoding.Decode のサンプルです. |

examples/basic/binaryop/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
このディレクトリには以下のサンプルがあります。
44

5-
| file | example name | note |
6-
|--------------------------------|-------------------------------|-------------------------------------------------------|
7-
| read.go | binaryop\_read | バイナリを読み込むサンプルです |
8-
| write.go | binaryop\_write | バイナリを書き込むサンプルです |
9-
| binary\_byteorder.go | binaryop\_byteorder | encoding/binary パッケージを用いて Go におけるバイトオーダーの確認をするサンプルです. |
10-
| mapstruct.go | binaryop\_mapping | 構造体にバイナリデータをマッピングするサンプルです |
11-
| struct\_read\_write.go | binaryop\_struct\_read\_write | 構造体をバイナリにパックし、それをバイナリとして書き出すサンプルです |
12-
| readwrite/binary\_readwrite.go | binaryop\_readwrite | binary パッケージの Read/Write を利用してエンディアン指定でデータを読み込むサンプルです |
5+
| file | example name | note |
6+
| ----------------------------- | -------------------------- | --------------------------------------------------------------------------------------- |
7+
| read.go | binaryop_read | バイナリを読み込むサンプルです |
8+
| write.go | binaryop_write | バイナリを書き込むサンプルです |
9+
| binary_byteorder.go | binaryop_byteorder | encoding/binary パッケージを用いて Go におけるバイトオーダーの確認をするサンプルです. |
10+
| mapstruct.go | binaryop_mapping | 構造体にバイナリデータをマッピングするサンプルです |
11+
| struct_read_write.go | binaryop_struct_read_write | 構造体をバイナリにパックし、それをバイナリとして書き出すサンプルです |
12+
| readwrite/binary_readwrite.go | binaryop_readwrite | binary パッケージの Read/Write を利用してエンディアン指定でデータを読み込むサンプルです |

examples/basic/bitop/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
このディレクトリには以下のサンプルがあります。
44

5-
| file | example name | note |
6-
|-------------|-----------------|-------------------|
7-
| basic.go | bitop\_basic | 基本的なビット操作のサンプルです. |
8-
| bitflags.go | bitop\_bitflags | ビットフラグのサンプルです. |
5+
| file | example name | note |
6+
| ----------- | -------------- | --------------------------------- |
7+
| basic.go | bitop_basic | 基本的なビット操作のサンプルです. |
8+
| bitflags.go | bitop_bitflags | ビットフラグのサンプルです. |
99

examples/basic/bufferop/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
このディレクトリには以下のサンプルがあります。
44

5-
| file | example name | note |
6-
|------------------|---------------------------|----------------------------------------|
7-
| zerovalue.go | bufferop\_zero\_value | bytes.Buffer を ゼロ値 で利用した場合のサンプルです |
8-
| frombytes.go | bufferop\_from\_bytes | bytes.Buffer を バイト列 から生成するサンプルです |
9-
| fromstring.go | bufferop\_from\_string | bytes.Buffer を 文字列 から生成するサンプルです |
10-
| use_as_reader.go | bufferop\_use\_as\_reader | bytes.Buffer を io.Reader として利用するサンプルです |
11-
| use_as_writer.go | bufferop\_use\_as\_writer | bytes.Buffer を io.Writer として利用するサンプルです |
5+
| file | example name | note |
6+
| ---------------- | ---------------------- | ---------------------------------------------------- |
7+
| zerovalue.go | bufferop_zero_value | bytes.Buffer を ゼロ値 で利用した場合のサンプルです |
8+
| frombytes.go | bufferop_from_bytes | bytes.Buffer を バイト列 から生成するサンプルです |
9+
| fromstring.go | bufferop_from_string | bytes.Buffer を 文字列 から生成するサンプルです |
10+
| use_as_reader.go | bufferop_use_as_reader | bytes.Buffer を io.Reader として利用するサンプルです |
11+
| use_as_writer.go | bufferop_use_as_writer | bytes.Buffer を io.Writer として利用するサンプルです |

examples/basic/builtins/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
このディレクトリには以下のサンプルがあります。
44

5-
| file | example name | note |
6-
|--------------|-----------------|-------------------------------------------|
7-
| copy.go | builtin\_copy | ビルトイン関数 copy についてのサンプルです. |
8-
| delete.go | builtin\_delete | ビルトイン関数 delete についてのサンプルです. |
9-
| printfunc.go | builtin\_print | ビルドイン関数のprintとfmt.Printの違いについてのサンプルです. |
10-
| minmax.go | builtin\_minmax | Go 1.21 で追加されたビルトイン関数のmin,maxについてのサンプルです. |
11-
| clear.go | builtin\_clear | Go 1.21 で追加されたビルトイン関数のclearについてのサンプルです. |
5+
| file | example name | note |
6+
| ------------ | -------------- | ------------------------------------------------------------------ |
7+
| copy.go | builtin_copy | ビルトイン関数 copy についてのサンプルです. |
8+
| delete.go | builtin_delete | ビルトイン関数 delete についてのサンプルです. |
9+
| printfunc.go | builtin_print | ビルドイン関数のprintとfmt.Printの違いについてのサンプルです. |
10+
| minmax.go | builtin_minmax | Go 1.21 で追加されたビルトイン関数のmin,maxについてのサンプルです. |
11+
| clear.go | builtin_clear | Go 1.21 で追加されたビルトイン関数のclearについてのサンプルです. |

examples/basic/byteop/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
このディレクトリには以下のサンプルがあります。
44

5-
| file | example name | note |
6-
|----------------------------|---------------------------------|----------------------------------|
7-
| reader\_from\_byteslice.go | byteop\_reader\_from\_byteslice | []byte から io.Reader を生成するサンプルです. |
8-
| using\_repeat.go | byteop\_using\_repeat | bytes.Repeat() のサンプルです |
5+
| file | example name | note |
6+
| ------------------------ | ---------------------------- | --------------------------------------------- |
7+
| reader_from_byteslice.go | byteop_reader_from_byteslice | []byte から io.Reader を生成するサンプルです. |
8+
| using_repeat.go | byteop_using_repeat | bytes.Repeat() のサンプルです |

examples/basic/cmdexec/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
このディレクトリには以下のサンプルがあります。
44

5-
| file | example name | note |
6-
|-------------------------------|-------------------------------------|-----------------------------------------------|
7-
| oneshot.go | cmdexec\_oneshot | コマンドを一発実行して結果を取得するサンプルです |
8-
| oneshotwithstderr.go | cmdexec\_oneshot\_with\_stderr | コマンドを一発実行して結果を取得するサンプルです。(標準エラー出力も含む) |
9-
| stdinouterr.go | cmdexec\_stdinouterr | 標準入力・標準出力・標準エラー出力を指定してコマンドを実行するサンプルです |
10-
| withcontext.go | cmdexec\_withcontext | コマンドを context.Context 付きで実行するサンプルです |
11-
| pipe.go | cmdexec\_pipe | (*Cmd).StdinPipe,StdoutPipe,StderrPipeのサンプルです |
12-
| multi\_command\_with\_pipe.go | cmdexec\_multi\_command\_with\_pipe | 複数の (*exec.Cmd) をパイプストリームで繋いで実行するサンプルです |
13-
| withenv.go | cmdexec\_env | *exec.Cmd 実行時に追加の環境変数を指定するサンプルです |
14-
| withdir.go | cmdexec\_dir | *exec.Cmd 実行時にワーキングディレクトリを指定するサンプルです |
15-
| withslice.go | cmdexec\_slice | *exec.Cmd 実行時にスライスの値をコマンドの引数で指定するサンプルです |
5+
| file | example name | note |
6+
| -------------------------- | ------------------------------- | -------------------------------------------------------------------------- |
7+
| oneshot.go | cmdexec_oneshot | コマンドを一発実行して結果を取得するサンプルです |
8+
| oneshotwithstderr.go | cmdexec_oneshot_with_stderr | コマンドを一発実行して結果を取得するサンプルです。(標準エラー出力も含む) |
9+
| stdinouterr.go | cmdexec_stdinouterr | 標準入力・標準出力・標準エラー出力を指定してコマンドを実行するサンプルです |
10+
| withcontext.go | cmdexec_withcontext | コマンドを context.Context 付きで実行するサンプルです |
11+
| pipe.go | cmdexec_pipe | (*Cmd).StdinPipe,StdoutPipe,StderrPipeのサンプルです |
12+
| multi_command_with_pipe.go | cmdexec_multi_command_with_pipe | 複数の (*exec.Cmd) をパイプストリームで繋いで実行するサンプルです |
13+
| withenv.go | cmdexec_env | *exec.Cmd 実行時に追加の環境変数を指定するサンプルです |
14+
| withdir.go | cmdexec_dir | *exec.Cmd 実行時にワーキングディレクトリを指定するサンプルです |
15+
| withslice.go | cmdexec_slice | *exec.Cmd 実行時にスライスの値をコマンドの引数で指定するサンプルです |

examples/basic/comments/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
このディレクトリには以下のサンプルがあります。
44

5-
| file | example name | note |
6-
|--------------------|-----------------------|---------------------------|
7-
| comments\_basic.go | comment\_basic\_usage | GO言語のコメントスタイルについてのサンプルです. |
5+
| file | example name | note |
6+
| ----------------- | ------------------- | ----------------------------------------------- |
7+
| comments_basic.go | comment_basic_usage | GO言語のコメントスタイルについてのサンプルです. |
88

examples/basic/constants/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
このディレクトリには以下のサンプルがあります。
44

5-
| file | example name | note |
6-
|-------------------------------|---------------------------|---------------------------|
7-
| const\_statement\_declares.go | const\_statement\_declare | const による 定数 の宣言についてのサンプル |
5+
| file | example name | note |
6+
| --------------------------- | ----------------------- | ------------------------------------------ |
7+
| const_statement_declares.go | const_statement_declare | const による 定数 の宣言についてのサンプル |
88

0 commit comments

Comments
 (0)