Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ominous_prime
on July 1, 2015
|
parent
|
context
|
favorite
| on:
Setting Go variables from the outside
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
on July 1, 2015
[–]
I 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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: