github.com/golangci/go-tools@v0.0.0-20190318060251-af6baa5dc196/version/version.go (about) 1 package version 2 3 import ( 4 "fmt" 5 "os" 6 "path/filepath" 7 ) 8 9 const Version = "2019.1.1" 10 11 func Print() { 12 if Version == "devel" { 13 fmt.Printf("%s (no version)\n", filepath.Base(os.Args[0])) 14 } else { 15 fmt.Printf("%s %s\n", filepath.Base(os.Args[0]), Version) 16 } 17 }