<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>i178inaba</author_name>
  <author_url>https://blog.hatena.ne.jp/i178inaba/</author_url>
  <blog_title>Technology Engineering</blog_title>
  <blog_url>https://inaba.hatenablog.com/</blog_url>
  <categories>
    <anon>Go</anon>
  </categories>
  <description>kingpin 標準のflagパッケージでは、同時に長いオプションと短いオプション(shortオプション)を定義するのが面倒。 package main import ( &quot;flag&quot; &quot;fmt&quot; ) var ( dryRun = flag.Bool(&quot;dry-run&quot;, false, &quot;dry run mode.&quot;) ) func init() { flag.BoolVar(dryRun, &quot;n&quot;, false, &quot;dry run mode.&quot;) flag.Parse() } func main() { fmt.Printf(&quot;dry run mode: %v\n&quot;, *dryRun) } …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finaba.hatenablog.com%2Fentry%2F2016%2F05%2F19%2F185229&quot; title=&quot;【Go】kingpinをinit()でパースしていたらテストでエラーが出た話 #golang - Technology Engineering&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-05-19 18:52:29</published>
  <title>【Go】kingpinをinit()でパースしていたらテストでエラーが出た話 #golang</title>
  <type>rich</type>
  <url>https://inaba.hatenablog.com/entry/2016/05/19/185229</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
