Last active
June 1, 2016 13:08
-
-
Save pinzolo/dcc2f037adeade3376ab8ae3ee5bb56d to your computer and use it in GitHub Desktop.
Goが出すドキュメントのためのコメントへの警告
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// 設定情報を格納する ← メッセージ出しやがる | |
type Config struct {} | |
// ConfigError は設定情報に不備があった場合のエラー情報を格納する ← 推奨しているらしい | |
type ConfigError struct {} | |
// Fooを返す ← メッセージ出しやがる | |
func GetFoo() string { | |
return "Foo" | |
} | |
// GetBar は Bar を返す ← 推奨しているらしい | |
func GetBar() string { | |
return "Bar" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment