2020-05-23 22:14:58 +00:00
|
|
|
// 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
|
|
|
|
}
|
2020-05-25 03:20:48 +00:00
|
|
|
|
2020-08-03 04:08:33 +00:00
|
|
|
// IsSet returns true if the version has been set.
|
|
|
|
func IsSet() bool {
|
2020-05-25 03:20:48 +00:00
|
|
|
return version != ""
|
|
|
|
}
|