Binary Size in Go Applications: How to Use Go-size-analyze | HackerNoon
Briefly

Go community prioritizes small application binaries for performance. go-size-analyzer assists in analyzing and optimizing binary size for efficiency.
Using go-size-analyzer for CockroachDB on Linux x86_64 version provides insights on dependencies and embedded files, optimizing for specific needs.
Understanding Go linker parameters like -s -w helps remove .symtab and .debug_* segments, significantly reducing binary size by around 40M.
Read at Hackernoon
[
|
]