4 ms·
> You can usually save double-digit percentages by stripping debugging information: pass `-ldflags=-w` to `go build`. Is there a way to make `go build` for a p
by pansa2 6y ago
> You can usually save double-digit percentages by stripping debugging information: pass `-ldflags=-w` to `go build`.
Is there a way to make `go build` for a particular project always use `-ldflags=-w`? Or do I have to remember to type it in every time (or hide my `go build` command inside a Makefile or `build.sh`)?