vikunja-api/vendor/honnef.co/go/tools/version/version.go

18 lines
260 B
Go
Raw Normal View History

2018-12-28 23:15:05 +01:00
package version
import (
"fmt"
"os"
"path/filepath"
)
const Version = "devel"
func Print() {
if Version == "devel" {
fmt.Printf("%s (no version)\n", filepath.Base(os.Args[0]))
} else {
fmt.Printf("%s %s\n", filepath.Base(os.Args[0]), Version)
}
}