{"provider_name":"Hatena Blog","description":"kingpin \u6a19\u6e96\u306eflag\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u306f\u3001\u540c\u6642\u306b\u9577\u3044\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u77ed\u3044\u30aa\u30d7\u30b7\u30e7\u30f3(short\u30aa\u30d7\u30b7\u30e7\u30f3)\u3092\u5b9a\u7fa9\u3059\u308b\u306e\u304c\u9762\u5012\u3002 package main import ( \"flag\" \"fmt\" ) var ( dryRun = flag.Bool(\"dry-run\", false, \"dry run mode.\") ) func init() { flag.BoolVar(dryRun, \"n\", false, \"dry run mode.\") flag.Parse() } func main() { fmt.Printf(\"dry run mode: %v\\n\", *dryRun) } \u2026","provider_url":"https://hatena.blog","version":"1.0","width":"100%","categories":["Go"],"image_url":null,"blog_title":"Technology Engineering","published":"2016-05-19 18:52:29","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finaba.hatenablog.com%2Fentry%2F2016%2F05%2F19%2F185229\" title=\"\u3010Go\u3011kingpin\u3092init()\u3067\u30d1\u30fc\u30b9\u3057\u3066\u3044\u305f\u3089\u30c6\u30b9\u30c8\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u8a71 #golang - Technology Engineering\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/i178inaba/","type":"rich","height":"190","title":"\u3010Go\u3011kingpin\u3092init()\u3067\u30d1\u30fc\u30b9\u3057\u3066\u3044\u305f\u3089\u30c6\u30b9\u30c8\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u8a71 #golang","blog_url":"https://inaba.hatenablog.com/","url":"https://inaba.hatenablog.com/entry/2016/05/19/185229","author_name":"i178inaba"}