apiary/version.go

18 lines
269 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
2021-10-29 17:15:11 +00:00
var Version = "v0.1.17"
2021-04-10 05:58:01 +00:00
var 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
}