<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>quoll00</author_name>
  <author_url>https://blog.hatena.ne.jp/quoll00/</author_url>
  <blog_title>Carpe Diem</blog_title>
  <blog_url>https://christina04.hatenablog.com/</blog_url>
  <categories>
    <anon>Go</anon>
    <anon>Docker</anon>
  </categories>
  <description>背景 以前Docker multi stage buildなどビルド環境と実行環境が異なる（クロスコンパイル）時に、単純にGOOSやGOARCHをセットするだけではなく $ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \ go build -a -installsuffix cgo -o main main.go のように CGO_ENABLED=0 -a -installsuffix cgo といったおまじないが必要ですよ、という記事を書きました。 ScratchイメージでGolangアプリの超軽量イメージをビルド - Carpe Diem が、go 1.10…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchristina04.hatenablog.com%2Fentry%2Finstallsuffix-cgo-is-no-longer-required&quot; title=&quot;cgoを使わないGoのクロスコンパイル時に -installsuffix cgo が不要になってた - Carpe Diem&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-12-16 06:17:09</published>
  <title>cgoを使わないGoのクロスコンパイル時に -installsuffix cgo が不要になってた</title>
  <type>rich</type>
  <url>https://christina04.hatenablog.com/entry/installsuffix-cgo-is-no-longer-required</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
