{"type":"rich","categories":["golang","memo"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpod.hatenablog.com%2Fentry%2F2020%2F12%2F10%2F141632\" title=\"go\u3067assembly\u3092\u898b\u305f\u3044\u3068\u304d\u306b can&#39;t find import &lt;package&gt; - podhmo&#39;s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","blog_title":"podhmo's diary","url":"https://pod.hatenablog.com/entry/2020/12/10/141632","published":"2020-12-10 14:16:32","title":"go\u3067assembly\u3092\u898b\u305f\u3044\u3068\u304d\u306b can't find import <package>","height":"190","description":"\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u3068\u3057\u3066\u3002assembly\u3092\u8997\u304d\u305f\u3044\u3068\u304d\u306b go tool compile \u3092\u4f7f\u304a\u3046\u3068\u3059\u308b\u3002 $ tree . \u251c\u2500\u2500 Makefile \u251c\u2500\u2500 go.mod \u251c\u2500\u2500 m.go \u2514\u2500\u2500 main.go 0 directories, 5 files \u4e0a\u624b\u304f\u3044\u304b\u306a\u3044\u3002 $ go tool compile -S -N main.go main.go:6:2: can't find import: \"m\" hmm\u3002\u3061\u306a\u307f\u306b -N \u306f\u6700\u9069\u5316\u3092\u5207\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u3002 go tool\u3067\u306f\u306a\u304f go build\u3092\u4f7f\u3048\u3070\u826f\u3044\u3002 $ go build -gcflags=\"-S -N\" ma\u2026","blog_url":"https://pod.hatenablog.com/","version":"1.0","provider_name":"Hatena Blog","image_url":null,"author_name":"podhmo","author_url":"https://blog.hatena.ne.jp/podhmo/","width":"100%"}