apiary/version.go
2021-09-17 02:01:43 +02:00

18 lines
268 B
Go

package apiary
import (
"fmt"
"runtime"
)
var Version = "v0.1.8"
var 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())
}