2022-11-02 20:07:43 +01:00
|
|
|
package build
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
var Version string
|
|
|
|
var Hash string
|
|
|
|
|
|
|
|
func String() string {
|
|
|
|
if Version != "" {
|
|
|
|
return fmt.Sprintf("%v [%v]", Version, Hash)
|
|
|
|
} else {
|
2022-11-18 22:02:12 +01:00
|
|
|
return "v0.3.x [developer build]"
|
2022-11-02 20:07:43 +01:00
|
|
|
}
|
|
|
|
}
|