.
https://github.com/golang-standards/project-layout
go run cmd/gameone/gameone.go
GOOS=linux GOARCH=amd64 go build -ldflags="-w -s -X 'main.Version=v2.0.0' -X 'github.com/bioform/go-test/build.User=$(id -u -n)' -X 'github.com/bioform/go-test/build.Time=$(LANG=en_us_88591; date)'" .
GOOS=windows GOARCH=amd64 go build -ldflags="-w -s -X 'main.Version=v2.0.0' -X 'github.com/bioform/go-test/internal/gameone/os.Pointer=>' -X 'github.com/bioform/go-test/internal/gameone/os.Checkmark=√'" cmd/gameone/gameone.go
-s
Omit the symbol table and debug information.
-w
Omit the DWARF symbol table.
docker build -t bioform/go-test:first .
if -s option wasn't provided during build
go tool nm ./go-test | grep go-test
docker run -it --rm bioform/go-test:first
docker ps -a --format "{{.ID}} {{.Command}}" --no-trunc
docker rm $(docker ps -a -q)