Omitting debug symbols To build without debug symbols: go build -ldflags="-s -w" ref: https://golang.org/cmd/link/