10 const Version = "2020.1.5"
12 // version returns a version descriptor and reports whether the
13 // version is a known release.
14 func version() (string, bool) {
15 if Version != "devel" {
18 v, ok := buildInfoVersion()
26 v, release := version()
29 fmt.Printf("%s %s\n", filepath.Base(os.Args[0]), v)
30 } else if v == "devel" {
31 fmt.Printf("%s (no version)\n", filepath.Base(os.Args[0]))
33 fmt.Printf("%s (devel, %s)\n", filepath.Base(os.Args[0]), v)
40 fmt.Println("Compiled with Go version:", runtime.Version())