Skip to content

Instantly share code, notes, and snippets.

@longtth
Created December 11, 2019 12:17
Show Gist options
  • Select an option

  • Save longtth/f4aa4288cd7cefd11cbce84dab818da3 to your computer and use it in GitHub Desktop.

Select an option

Save longtth/f4aa4288cd7cefd11cbce84dab818da3 to your computer and use it in GitHub Desktop.
setting Go sau khi download từ web thay vì tải từ package manager

It's also really easy. On Linux, you can simply do:

# Install Go on Linux.
curl -L https://golang.org/dl/go1.8.1.linux-amd64.tar.gz | sudo tar zx -C /usr/local/

# Add to ~/.bash_profile.
export PATH="$PATH:/usr/local/go/bin:$HOME/go/bin"

Edit: Updated for Go 1.8.1. It's even easier now, because one can rely on default value of GOPATH instead of having to set it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment