zrok/build/metadata.go
2022-11-02 15:07:43 -04:00

15 lines
199 B
Go

package build
import "fmt"
var Version string
var Hash string
func String() string {
if Version != "" {
return fmt.Sprintf("%v [%v]", Version, Hash)
} else {
return "<developer_build>"
}
}