Created
April 28, 2021 14:40
-
-
Save Zulbukharov/710599b76638b2e41ccde40e3227f1d8 to your computer and use it in GitHub Desktop.
install2.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| IFS=' | |
| ' | |
| set -x | |
| sudo apt -y install man bash-completion git jq curl build-essential netcat wget psmisc file net-tools unzip zip moreutils pv tree whois openssh-client | |
| wget https://golang.org/dl/go1.16.3.linux-amd64.tar.gz | |
| sudo tar -C /usr/local -xzf go1.16.3.linux-amd64.tar.gz | |
| rm go1.16.3.linux-amd64.tar.gz | |
| cat <<'EOF'>> ~/.bashrc | |
| GOPATH=$HOME/go | |
| PATH=$PATH:/usr/local/go/bin:$GOPATH/bin | |
| EOF | |
| GOPATH=$HOME/go | |
| PATH=$PATH:/usr/local/go/bin:$GOPATH/bin | |
| go get -v golang.org/x/tools/cmd/goimports | |
| go get -v github.com/01-edu/z01 | |
| go get -v github.com/stamblerre/gocode | |
| mv "${GOPATH}/bin/gocode" "${GOPATH}/bin/gocode-gomod" | |
| go get -v github.com/mdempsky/gocode | |
| go get -v github.com/uudashr/gopkgs/v2/cmd/gopkgs | |
| go get -v github.com/ramya-rao-a/go-outline | |
| go get -v github.com/acroca/go-symbols | |
| go get -v golang.org/x/tools/cmd/guru | |
| go get -v golang.org/x/tools/cmd/gorename | |
| go get -v github.com/cweill/gotests/... | |
| go get -v github.com/fatih/gomodifytags | |
| go get -v github.com/josharian/impl | |
| go get -v github.com/davidrjenni/reftools/cmd/fillstruct | |
| go get -v github.com/haya14busa/goplay/cmd/goplay | |
| go get -v github.com/godoctor/godoctor | |
| go get -v github.com/go-delve/delve/cmd/dlv | |
| go get -v github.com/rogpeppe/godef | |
| go get -v github.com/sqs/goreturns | |
| go get -v golang.org/x/lint/golint | |
| go get -v golang.org/x/tools/gopls |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment