News for hackers. Stuff that matters.
Re:Self-Contained Pure-Go Web Server with Lua, MD, HTTP/2, Q... by baldomo on Friday April 05, 2019 @06:34AM (#19581245)
You can actually pass LDFLAGS to any go tool (e.g. go build[1]). The flags are specified in the linker documentation[2]

[1] https://golang.org/cmd/go/#hdr-Compile_packages_and_dependen... [2] https://golang.org/cmd/link/

Re:Self-Contained Pure-Go Web Server with Lua, MD, HTTP/2, Q... by marcus_holmes on Friday April 05, 2019 @07:25AM (#19581479)
which is useful, except as far as I'm aware it doesn't cover this case.

The original is at: https://science.raphael.poss.name/go-executable-size-visuali...