aboutsummaryrefslogtreecommitdiff
path: root/vendor/honnef.co/go/tools/version/version.go
blob: 9536482c258ea012efd67660d42fe872af623f5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package version

import (
	"fmt"
	"os"
	"path/filepath"
)

const Version = "2017.2.2"

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)
	}
}