Using GVM to manage the go version

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.