[CI] Add more checks (#43)
This commit is contained in:
17
vendor/honnef.co/go/tools/version/version.go
vendored
Normal file
17
vendor/honnef.co/go/tools/version/version.go
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
package version
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
const Version = "devel"
|
||||
|
||||
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)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user