I am trying to create a clean statically linked binary to run in a minimal Docker container. Before Go 1.5, I built them like this:
go build -a -tags netgo -installsuffix netgo myfile.go
I understand that C was excluded from the Go compiler in version 1.5. Do I need to build with -tagsand -installsuffix?
source
share