Skip to content

Commit 37cf04d

Browse files
authored
Use "go install" instead of "go get" in README.md
See: https://go.dev/doc/go-get-install-deprecation It's available since Go 1.16 and running "go get" recommends it in the future. It the change is too new, maybe we can specify that "go get" should be used in older versions and "go install" in newer ones (since they allow you to specify a fixed version as well)
1 parent 8ddee48 commit 37cf04d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ errcheck is a program for checking for unchecked errors in go programs.
66

77
## Install
88

9-
go get -u github.com/kisielk/errcheck
9+
go install github.com/kisielk/errcheck@latest
1010

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

0 commit comments

Comments
 (0)