github.com/elek/golangci-lint@v1.42.2-0.20211208090441-c05b7fcb3a9a/cmd/golangci-lint/main.go (about) 1 package main 2 3 import ( 4 "fmt" 5 "os" 6 7 "github.com/elek/golangci-lint/pkg/commands" 8 "github.com/elek/golangci-lint/pkg/exitcodes" 9 ) 10 11 var ( 12 // Populated by goreleaser during build 13 version = "master" 14 commit = "?" 15 date = "" 16 ) 17 18 func main() { 19 e := commands.NewExecutor(version, commit, date) 20 21 if err := e.Execute(); err != nil { 22 fmt.Fprintf(os.Stderr, "failed executing command with error %v\n", err) 23 os.Exit(exitcodes.Failure) 24 } 25 }