zs/version.go

19 lines
298 B
Go
Raw Normal View History

2021-09-18 02:43:22 +03:00
package main
import (
"fmt"
)
var (
// Version release version
Version = "0.0.1"
// Commit will be overwritten automatically by the build system
Commit = "HEAD"
)
// FullVersion display the full version and build
func FullVersion() string {
return fmt.Sprintf("%s@%s", Version, Commit)
}