apiary/version.go

20 lines
273 B
Go
Raw Normal View History

2021-04-10 05:58:01 +00:00
package apiary
2021-06-18 12:47:32 +00:00
import (
"fmt"
"runtime"
)
2021-04-12 06:58:39 +00:00
2022-02-09 14:13:30 +00:00
var (
Version = "v0.1.27"
Build string
)
2021-04-12 06:58:39 +00:00
func FullVersion() string {
if Build != "" {
2021-06-18 12:47:32 +00:00
return fmt.Sprintf("%s-%s (%s)", Version, Build, runtime.Version())
2021-04-12 06:58:39 +00:00
}
2021-06-18 12:47:32 +00:00
return fmt.Sprintf("%s (%s)", Version, runtime.Version())
2021-04-12 06:58:39 +00:00
}