Skip to content

Commit 4e4370a

Browse files
authored
Add a note about GO111MODULE (#222)
1 parent 662ffb0 commit 4e4370a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ errcheck is a program for checking for unchecked errors in go programs.
1010

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

13+
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`.
14+
1315
## Use
1416

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

2123
errcheck ./...
2224

23-
Or check all packages in your $GOPATH and $GOROOT:
25+
Or check all packages in your `$GOPATH` and `$GOROOT`:
2426

2527
errcheck all
2628

0 commit comments

Comments
 (0)