Skip to content

Instantly share code, notes, and snippets.

@edcote
Created April 30, 2018 02:45
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 edcote/0976c55d73d6a80ed9091e58eff60c07 to your computer and use it in GitHub Desktop.
Save edcote/0976c55d73d6a80ed9091e58eff60c07 to your computer and use it in GitHub Desktop.
Go
  • Download and untar latest version of go at www.golang.org
  • Set GOPATH and GOROOT environment variables. GOROOT points to go binary install. GOPATH points to your workspace (e.g. $HOME/go).

Notes from https://github.com/alco/gostart:

  • Go is only compatible with code that resides in a workspace.
  • Go does not allow you to depend on specific versions of external packages.
  • There are no local packages, only fully qualified imports.
  • All files in a single directory belong to one package

Official document here

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