Last active
November 26, 2019 15:20
-
-
Save daehee/ae3090fcc0f47135baca8a4d4e500eae to your computer and use it in GitHub Desktop.
go-setup.sh
This file contains 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
#!/bin/bash | |
VERSION="1.13.4" | |
wget https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz | |
tar xvfz go$VERSION.linux-amd64.tar.gz | |
sudo chown -R root:root ./go | |
sudo rm -rf /usr/local/go | |
sudo mv go /usr/local/ | |
source ~/.zshrc | |
go get golang.org/x/tools/cmd/goimports | |
go get github.com/nsf/gocode | |
rm go$VERSION.linux-amd64.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment