github.com/pankona/gometalinter@v2.0.11+incompatible/_linters/src/honnef.co/go/tools/version/version.go (about)

     1  package version
     2  
     3  import (
     4  	"fmt"
     5  	"os"
     6  	"path/filepath"
     7  )
     8  
     9  const Version = "2017.2"
    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  }