Skip to content

Instantly share code, notes, and snippets.

@gwang
Last active January 15, 2016 04:35
Show Gist options
  • Save gwang/a121ec8edbbe8fab3bce to your computer and use it in GitHub Desktop.
Save gwang/a121ec8edbbe8fab3bce to your computer and use it in GitHub Desktop.
Golang GVM set up
  1. Refer to this link

    1. gvm pkgset create learning
    2. gvm pkgset use learning
    3. gvm pkgset list
    4. edit env gvm pkgenv learning
# original line
export GOPATH; GOPATH="/Users/james/.gvm/pkgsets/go1.2/learning:$GOPATH"
# new edited line
export GOPATH; GOPATH="/Users/james/.gvm/pkgsets/go1.2/learning:$HOME/go:$GOPATH"
# original line
export PATH; PATH="/Users/james/.gvm/pkgsets/go1.2/learning/bin:${GVM_OVERLAY_PREFIX}/bin:${PATH}"
# new edited line
export PATH; PATH="/Users/james/.gvm/pkgsets/go1.2/learning/bin:${GVM_OVERLAY_PREFIX}/bin:$HOME/go/bin:${PATH}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment