4 ms·
This doesn't affect `go get`. You can use the same options when fetching the package, setting the variable or leaving it as the default. go get -ldflags="
by ominous_prime 11y ago
This doesn't affect `go get`. You can use the same options when fetching the package, setting the variable or leaving it as the default.
go get -ldflags="-X main.Who CloudFlare" import/path/package
- andrewstuart2 11y agoI guess that's pretty reasonable. Especially coupled with sensible defaults for your variables like "unreleased" in the article. If you're building for a release you're probably a lot more up-to-speed on the needs for a release build anyway.