Skip to content

Instantly share code, notes, and snippets.

@daehee
Last active November 26, 2019 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daehee/ae3090fcc0f47135baca8a4d4e500eae to your computer and use it in GitHub Desktop.
Save daehee/ae3090fcc0f47135baca8a4d4e500eae to your computer and use it in GitHub Desktop.
go-setup.sh
#!/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