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
2023-03-31 00:57:27 +02:00
const Series = "v0.4"
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
}
}