I think that gc includes debugging information by default. However, I want to avoid decompilation.
How can I remove the debugging information when compiling go code
I recommend usage of -ldflags="-s -w" which removes symbol table and debugging information.
-ldflags="-s -w"
As a bonus with Go 1.13 -trimpath can be used to reduce length of file paths stored in the file
-trimpath