Skip to content

Commit

Permalink
Use "go install" instead of "go get" in README.md
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
eliasdaler authored Dec 22, 2021
1 parent 8ddee48 commit 37cf04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ errcheck is a program for checking for unchecked errors in go programs.

## Install

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

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

Expand Down

0 comments on commit 37cf04d

Please sign in to comment.