zrok/build/metadata.go

17 lines
234 B
Go
Raw Normal View History

2022-11-02 20:07:43 +01:00
package build
import "fmt"
var Version string
var Hash string
const Series = "v0.3"
2022-11-02 20:07:43 +01:00
func String() string {
if Version != "" {
return fmt.Sprintf("%v [%v]", Version, Hash)
} else {
return Series + ".x [developer build]"
2022-11-02 20:07:43 +01:00
}
}