docs(go): use go install instead of go get (#5638)

Currently the dependencies listed use `go get`, but this is
soon to be deprecated. Replace the `go get` commands with
`go install` command.
This commit is contained in:
Karthik Nayak 2021-10-18 01:37:03 +02:00 committed by GitHub
parent 390fd1a7b0
commit 3e89872e8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,14 +78,14 @@ This module requires a valid ~GOPATH~, and the following Go packages:
#+BEGIN_SRC sh #+BEGIN_SRC sh
export GOPATH=~/work/go export GOPATH=~/work/go
go get -u github.com/x-motemen/gore/cmd/gore go install github.com/x-motemen/gore/cmd/gore@latest
go get -u github.com/stamblerre/gocode go install github.com/stamblerre/gocode@latest
go get -u golang.org/x/tools/cmd/godoc go install golang.org/x/tools/cmd/godoc@latest
go get -u golang.org/x/tools/cmd/goimports go install golang.org/x/tools/cmd/goimports@latest
go get -u golang.org/x/tools/cmd/gorename go install golang.org/x/tools/cmd/gorename@latest
go get -u golang.org/x/tools/cmd/guru go install golang.org/x/tools/cmd/guru@latest
go get -u github.com/cweill/gotests/... go install github.com/cweill/gotests/gotests@latest
go get -u github.com/fatih/gomodifytags go install github.com/fatih/gomodifytags@latest
#+END_SRC #+END_SRC
+ ~golangci-lint~ (optional: for flycheck to integrate golangci-lint results) + ~golangci-lint~ (optional: for flycheck to integrate golangci-lint results)