apiary/version.go
2022-02-09 15:13:30 +01:00

20 lines
273 B
Go

package apiary
import (
"fmt"
"runtime"
)
var (
Version = "v0.1.27"
Build string
)
func FullVersion() string {
if Build != "" {
return fmt.Sprintf("%s-%s (%s)", Version, Build, runtime.Version())
}
return fmt.Sprintf("%s (%s)", Version, runtime.Version())
}