13 lines
247 B
Go
13 lines
247 B
Go
|
// Package version provides a global version string.
|
||
|
package version
|
||
|
|
||
|
var version string
|
||
|
|
||
|
// Version returns a compile time version string, or "(devel)" if unset.
|
||
|
func Version() string {
|
||
|
if version == "" {
|
||
|
return "(devel)"
|
||
|
}
|
||
|
return version
|
||
|
}
|