<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>minghai</author_name>
  <author_url>https://blog.hatena.ne.jp/minghai/</author_url>
  <blog_title>minghaiの日記</blog_title>
  <blog_url>https://minghai.hatenadiary.org/</blog_url>
  <categories>
    <anon>Go</anon>
  </categories>
  <description>ここ数日悩んでいるGoのパッケージ、ディレクトリ構造とエラー処理の話。 何気にGoDocにgo buildのドキュメントもあるんだなぁと気付いた。考えてみれば、Goのソースは全て公開されているのだった。goコマンドのソースを眺めてみるとちょっと面白かった。goコマンドのmainは以下になる。 https://golang.org/src/cmd/go/main.go?h=package+main こうやって見るとビルドを含むgoのサブコマンドはCommand型で抽象化され、cmd.Runにて実行される。別プロセスになる訳でもなく、呼び出しているだけの模様。 go buildの本体はここにある。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fminghai.hatenadiary.org%2Fentry%2F2019%2F05%2F29%2F163503&quot; title=&quot;Goのパッケージ、ディレクトリ構造とエラー処理 - minghaiの日記&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>2019-05-29 16:35:03</published>
  <title>Goのパッケージ、ディレクトリ構造とエラー処理</title>
  <type>rich</type>
  <url>https://minghai.hatenadiary.org/entry/2019/05/29/163503</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
