Skip to content

Instantly share code, notes, and snippets.

@vincenting
Created April 27, 2014 12:15
Show Gist options
  • Select an option

  • Save vincenting/11344139 to your computer and use it in GitHub Desktop.

Select an option

Save vincenting/11344139 to your computer and use it in GitHub Desktop.
golang init shell
# change gopath to current path
export GOPATH=$(pwd)
# create dirs if not exist
mkdir -p bin
mkdir -p src
mkdir -p pkg
# add current bin path to global path
export PATH=$PATH:$GOPATH/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment