Documentation ¶
Overview ¶
Package version provides a home for metadata about the program, how it's running, what it's name is, and so forth. It should not depend upon any non-stdlib packages, so that it's safe for import anywhere in the project.
Index ¶
Constants ¶
const Program = "dummyapp"
Program is our idea of the persistent name of the program, for use where we don't want to use argv[0]. It's exported so that this doesn't have to be repeated. Customize this if copying this code for use elsewhere!
Variables ¶
var BuildTime string
BuildTime is potentially set at link-time. It should be used to record the timestamp (date+time) of the build.
Functions ¶
func CurrentVersion ¶
func CurrentVersion() string
CurrentVersion provides the single-string derivation of what we consider our current version to be. It might be derived from multiple pieces of information, whatever we think makes sense. It probably fits on one line.