|
|
|
#!/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 brotli unzip zip moreutils pv tree whois openssh-client
|
|
|
|
|
|
|
|
wget https://golang.org/dl/go1.16.6.linux-amd64.tar.gz
|
|
|
|
sudo tar -C /usr/local -xzf go1.16.6.linux-amd64.tar.gz
|
|
|
|
rm go1.16.6.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 mvdan.cc/gofumpt
|
|
|
|
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/cweill/gotests/gotests
|
|
|
|
go get -v github.com/fatih/gomodifytags
|
|
|
|
go get -v github.com/josharian/impl
|
|
|
|
go get -v github.com/haya14busa/goplay/cmd/goplay
|
|
|
|
go get -v github.com/go-delve/delve/cmd/dlv
|
|
|
|
go get -v github.com/go-delve/delve/cmd/dlv@master
|
|
|
|
go get -v honnef.co/go/tools/cmd/staticcheck
|
|
|
|
go get -v golang.org/x/tools/gopls
|