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-28 14:35:57 +00:00
|
|
|
var Version = "v0.1.15"
|
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
|
|
|
}
|