Skip to content

Instantly share code, notes, and snippets.

@viniciusCamargo
Last active July 8, 2017 20:50
Show Gist options
  • Save viniciusCamargo/67d5e0005fa15c94f3d30ef3da1c2bc0 to your computer and use it in GitHub Desktop.
Save viniciusCamargo/67d5e0005fa15c94f3d30ef3da1c2bc0 to your computer and use it in GitHub Desktop.
How to install Golang
  • Download the binaries
  • Extract them tar -C /usr/local -xzf go1.8.3.linux-amd64.tar.gz
  • Set Go variables to ~/.profile:
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
  • Create the directory for Go path mkdir ~/go
  • For a new project mkdir ~/go/src/hello-world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment