10 const Version = "2020.2.1"
11 const MachineVersion = "v0.1.1"
13 // version returns a version descriptor and reports whether the
14 // version is a known release.
15 func version() (human, machine string, known bool) {
16 if Version != "devel" {
17 return Version, MachineVersion, true
19 v, ok := buildInfoVersion()
23 return "devel", "", false
27 human, machine, release := version()
30 fmt.Printf("%s %s (%s)\n", filepath.Base(os.Args[0]), human, machine)
31 } else if human == "devel" {
32 fmt.Printf("%s (no version)\n", filepath.Base(os.Args[0]))
34 fmt.Printf("%s (devel, %s)\n", filepath.Base(os.Args[0]), human)
41 fmt.Println("Compiled with Go version:", runtime.Version())