gopkg.in/tools/godep.v41@v41.0.0-20151217180337-fe5ce707f879/version.go (about) 1 package main 2 3 import ( 4 "fmt" 5 "runtime" 6 ) 7 8 const version = 41 9 10 var cmdVersion = &Command{ 11 Name: "version", 12 Short: "show version info", 13 Long: ` 14 15 Displays the version of godep as well as the target OS, architecture and go runtime version. 16 `, 17 Run: runVersion, 18 } 19 20 func runVersion(cmd *Command, args []string) { 21 fmt.Printf("godep v%d (%s/%s/%s)\n", version, runtime.GOOS, runtime.GOARCH, runtime.Version()) 22 }