{"provider_url":"https://hatena.blog","published":"2016-05-23 23:56:20","blog_title":"\u305d\u306e\u624b\u306e\u5e73\u306f\u5c3b\u3082\u3064\u304b\u3081\u308b\u3055","type":"rich","categories":["golang","docker"],"provider_name":"Hatena Blog","title":"Docker \u4f7f\u3063\u3066 golang \u3067\u66f8\u3044\u305f\u30c4\u30fc\u30eb\u306e cross platform build \u3092\u3059\u308b","url":"https://moznion.hatenadiary.com/entry/2016/05/23/235620","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmoznion.hatenadiary.com%2Fentry%2F2016%2F05%2F23%2F235620\" title=\"Docker \u4f7f\u3063\u3066 golang \u3067\u66f8\u3044\u305f\u30c4\u30fc\u30eb\u306e cross platform build \u3092\u3059\u308b - \u305d\u306e\u624b\u306e\u5e73\u306f\u5c3b\u3082\u3064\u304b\u3081\u308b\u3055\" 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/moznion/","width":"100%","version":"1.0","author_name":"moznion","image_url":null,"height":"190","description":"\u307e\u305a\u4ee5\u4e0b\u306e\u69d8\u306a\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7528\u610f\u3059\u308b\uff0e #!/bin/bash # \u3053\u3053\u3067\u4f9d\u5b58\u3057\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092 go get \u3059\u308b # \u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u69d8\u306a\u611f\u3058 # go get -v gopkg.in/yaml.v2 # go get -v gopkg.in/redis.v3 for GOOS in darwin linux; do for GOARCH in 386 amd64; do export GOOS export GOARCH go build -v -o bin/tool-$GOOS-$GOARCH main.go done done darwin \u3068 linux \u306b\u3064\u3044\u3066\uff0c\u305d\u308c\u305e\u308c i3\u2026","blog_url":"https://moznion.hatenadiary.com/"}