Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 473 Bytes

go_lint_vet.md

File metadata and controls

32 lines (18 loc) · 473 Bytes

Go Lint & Vet

Installation:

go install golang.org/x/lint/golint@latest

And run it with

golint ./..
go vet ./..

We can also use golangci-lint for doing all the lint, vet checks

Installation

curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.43.0

golangci-lint --version

configuration file : .golangci.yml location: root directory of the project