Skip to content

Commit 2a24400

Browse files
committed
Fix warnings
1 parent 56c1d4c commit 2a24400

File tree

48 files changed

+307
-305
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+307
-305
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/binaryop/readwrite/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-
|binary\_readwrite.go|binary\_readwrite|binary パッケージの Read/Write を利用してエンディアン指定でデータを読み込むサンプルです.|
5+
| file | example name | note |
6+
|----------------------|-------------------|--------------------------------------------------------|
7+
| binary\_readwrite.go | binary\_readwrite | binary パッケージの Read/Write を利用してエンディアン指定でデータを読み込むサンプルです. |
88

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/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/comments_basic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ GO言語のコメントスタイルについてのサンプルがあるパッケ
3636
3737
GO言語のコメントスタイルについては以下を参照.
3838
39-
- http://bit.ly/2HS4sg4
39+
- https://tip.golang.org/doc/comment
4040
4141
スラッシュとアスタリスクを利用するコメントは「パッケージ用」
4242

examples/basic/convert/README.md

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

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

5-
|file|example name|note|
6-
|----|------------|----|
7-
|strslice\_to\_ifslice.go|convert\_string\_slice\_to\_interface\_slice|[]string から []interface{} への変換についてのサンプルです.|
8-
|int_\_to\_str.go|convert\_int\_to\_str|fmt.Sprint() を使って、数値 (int) を 文字列 (string) に変換するサンプルです|
9-
|struct\_to\_str.go|convert\_struct\_to\_str|fmt.Sprint() を利用して 構造体 を 文字列 にするサンプルです|
5+
| file | example name | note |
6+
|--------------------------|----------------------------------------------|-------------------------------------------------------|
7+
| strslice\_to\_ifslice.go | convert\_string\_slice\_to\_interface\_slice | []string から []interface{} への変換についてのサンプルです. |
8+
| int_\_to\_str.go | convert\_int\_to\_str | fmt.Sprint() を使って、数値 (int) を 文字列 (string) に変換するサンプルです |
9+
| struct\_to\_str.go | convert\_struct\_to\_str | fmt.Sprint() を利用して 構造体 を 文字列 にするサンプルです |

examples/basic/cryptos/README.md

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

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

5-
|file|example name|note|
6-
|----|------------|----|
7-
|checksum/md5.go|crypto\_md5\_checksum|crypto/md5 のサンプルです.|
8-
|aes/ecb.go|crypto\_aes\_ecb|crypto/aes のサンプルです (ECB) .|
9-
|aes/cbc.go|crypto\_aes\_cbc|crypto/aes のサンプルです (CBC) .|
10-
|rand/reader.go|crypto\_rand\_reader|crypto/rand.Reader を用いてセキュリティ的に安全な乱数を生成するサンプルです.|
11-
|rand/read.go|crypto\_rand\_read|crypto/rand.Read を用いてセキュリティ的に安全な乱数を生成するサンプルです.|
12-
|bcrypt/generate.go|crypto\_bcrypt\_generate|golang.org/x/crypto/bcrypt を使って bcrypt パスワードハッシュ を生成するサンプルです.|
13-
|bcrypt/compare.go|crypto\_bcrypt\_compare|golang.org/x/crypto/bcrypt を使って生成したパスワードハッシュと比較するサンプルです.|
5+
| file | example name | note |
6+
|--------------------|--------------------------|---------------------------------------------------------------|
7+
| checksum/md5.go | crypto\_md5\_checksum | crypto/md5 のサンプルです. |
8+
| aes/ecb.go | crypto\_aes\_ecb | crypto/aes のサンプルです (ECB) . |
9+
| aes/cbc.go | crypto\_aes\_cbc | crypto/aes のサンプルです (CBC) . |
10+
| rand/reader.go | crypto\_rand\_reader | crypto/rand.Reader を用いてセキュリティ的に安全な乱数を生成するサンプルです. |
11+
| rand/read.go | crypto\_rand\_read | crypto/rand.Read を用いてセキュリティ的に安全な乱数を生成するサンプルです. |
12+
| bcrypt/generate.go | crypto\_bcrypt\_generate | golang.org/x/crypto/bcrypt を使って bcrypt パスワードハッシュ を生成するサンプルです. |
13+
| bcrypt/compare.go | crypto\_bcrypt\_compare | golang.org/x/crypto/bcrypt を使って生成したパスワードハッシュと比較するサンプルです. |

0 commit comments

Comments
 (0)