2021-08-21 14:15:29 +00:00
|
|
|
package dogtamer
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
2022-01-13 14:23:45 +00:00
|
|
|
const Version string = "v0.1.13"
|
2021-08-21 14:15:29 +00:00
|
|
|
|
|
|
|
var Build string
|
|
|
|
|
|
|
|
func GetVersion() string {
|
|
|
|
if Build == "" {
|
|
|
|
return fmt.Sprintf("Dogtamer Version %s", Version)
|
|
|
|
} else {
|
|
|
|
return fmt.Sprintf("Dogtamer Version %s (%s)", Version, Build)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func GetShortVersion() string {
|
|
|
|
var s string
|
|
|
|
if Build == "" {
|
|
|
|
s = Version
|
|
|
|
} else {
|
|
|
|
s = fmt.Sprintf("%s-%s", Version, Build)
|
|
|
|
}
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
func GetHeaderVersion() string {
|
|
|
|
if Build == "" {
|
|
|
|
return fmt.Sprintf("Dogtamer/%s", Version)
|
|
|
|
} else {
|
|
|
|
return fmt.Sprintf("Dogtamer/%s-%s", Version, Build)
|
|
|
|
}
|
|
|
|
}
|