Golang - gvm Golang version manger
Table of Contents
#
gvm
##
Intro
Golang version manger
##
Usage
- Install
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
- Add to .bashrc or .zshrc
# added gvm command to shell
source "$HOME/.gvm/scripts/gvm"
# directory path for GO
export GOPATH=$HOME/gopath
export GOROOT=$HOME/go
export PATH=$PATH:$GOROOT/bin
- Install go
gvm install go1.4 -B
gvm use go1.4
export GOROOT_BOOTSTRAP=$GOROOT
gvm install go1.9
- Finall add command to .bashrc or .zshrc
gvm use go1.9