Skip to content

Instantly share code, notes, and snippets.

@kitsuyui
Last active December 20, 2016 14:27
Show Gist options
  • Save kitsuyui/fc68a1a785fbff92ebff11fdfc4851f8 to your computer and use it in GitHub Desktop.
Save kitsuyui/fc68a1a785fbff92ebff11fdfc4851f8 to your computer and use it in GitHub Desktop.
Go のバイナリには -ldflags '-w -s' でコンパイルしてもたくさんパスが埋め込まれていた ref: http://qiita.com/kitsuyui/items/d03a9de90330d8c275c8
$ go build -ldflags '-w -s'
_/Users/kitsuyui/.go/*****/*****.go
_/Users/kitsuyui/develop/*****/*****.go
$ docker run --rm -v "$(pwd)":/foobar -w /foobar tcnksm/gox:latest \
sh -c "go get -d ./... && gox -ldflags '-w -s'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment