You can omit the symbol table and debug information by passing the -s flag to the linker.
$ go build -ldflags "-s"
Create stripped Go binaries
You can omit the symbol table and debug information by passing the -s flag to the linker.
$ go build -ldflags "-s"