安装配置
安装
不同版本的管理工具gvm
sudo apt-get install curl git mercurial make binutils bison gcc build-essential
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
env CGO_ENABLED=0 gvm install go1.4
gvm use go1.4 [--default]
Usage: gvm install [version] [options]
    -s,  --source=SOURCE      Install Go from specified source.
    -n,  --name=NAME          Override the default name for this version.
    -pb, --with-protobuf      Install Go protocol buffers.
    -b,  --with-build-tools   Install package build tools.
    -B,  --binary             Only install from binary.
         --prefer-binary      Attempt a binary install, falling back to source.
    -h,  --help               Display this message.
    
gvm list
gvm listall
gvm implode
安装1.4需要env CGO_ENABLED=0 gvm install go1.4
安装1.8需要依赖1.4
GOPATH
需要设置到.bashrc中
$GOPATH具有三个子目录
 
                     
                    
                 
                    
                
 
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号