Skip to content

Commit

Permalink
Add a note about GO111MODULE (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
kisielk authored Jan 12, 2023
1 parent 662ffb0 commit 4e4370a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ errcheck is a program for checking for unchecked errors in go programs.

errcheck requires Go 1.12 or newer, and depends on the package go/packages from the golang.org/x/tools repository.

errcheck requires module support to be enabled, which is the default in Go 1.13 and later. If installing with Go 1.12 you will need to specify `GO111MODULE=on` if building within `$GOPATH`.

## Use

For basic usage, just give the package path of interest as the first argument:
Expand All @@ -20,7 +22,7 @@ To check all packages beneath the current directory:

errcheck ./...

Or check all packages in your $GOPATH and $GOROOT:
Or check all packages in your `$GOPATH` and `$GOROOT`:

errcheck all

Expand Down

0 comments on commit 4e4370a

Please sign in to comment.