Used to develop with python, accustomed to the virtualenv, now see go, think is not also have similar dongdong, search a bit, sure enough, there. This is the GVM to be said today. Install GVM
$ bash < < (curl-s-s-l Https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
When the installation is complete, the. GVM directory is generated in the user's own home directory.
$ ls-al ~/.GVM
using GVM
View the current machine's go environment
$ GVM list
GVM Gos (installed)
system
Only one system is shown here, which is a go version that was originally installed by the systems. View all installable go versions
$ GVM Listall ...
Install Go
Here, two versions of Go are installed, followed by the switch.
$ GVM Install go1.5-b
$ GVM Install Go1.6-b
Once the installation is complete, check it out.
$ GVM List
GVM Gos (installed)
go1.5
go1.6
System
Toggle Go VersionUsing Go1.5
$ GVM Use go1.5
$ go version
go1.5 linux/amd64
Using Go1.6
$ GVM Use go1.6
$ go version
go1.6 linux/amd64
Reprint please indicate this link form link
This article link: http://blog.csdn.net/kongxx/article/details/52930908