version.go (
2
lines of code) (
raw
):
package main // To set this from outside, use go build -ldflags "-X 'main.version=$(VERSION)'" var version string = "dev"