Installation of Go-tour

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

First of all, of course, install Go run environment, installation method see:

Http://www.cnblogs.com/ghj1976/archive/2013/01/16/2863142.html

First, install the Mercurial

Mercurial is a cross-platform distributed version control software. Mercurial is primarily implemented by the Python language, but it also contains a binary comparison tool implemented in C. The primary operating platform for mercurial was Linux. Mercurial has now been ported to Windows, Mac OS X, and most Unix-like systems. Mercurial consists mainly of a command-line program, but now also has a graphical user interface.

If you do not have mercurial installed on your system, you cannot use the HG command.

Http://zh.wikipedia.org/wiki/Mercurial

The installation can be done by executing the following command:

sudo easy_install mercurial

Second, installation Go-tour

Install the English version of the Go-tour command:

sudo go get code.google.com/p/go-tour/gotour

Gopath allow multiple directories, when there are multiple directories, note the delimiter, multiple directories when Windows is a semicolon, Linux system is a colon, when there are multiple Gopath, the default is to put the contents of go get in the first directory.

Https://github.com/astaxie/build-web-application-with-golang/blob/master/01.2.md

http://www.mikespook.com/2012/02/%E7%BF%BB%E8%AF%91go-%E7%8E%AF%E5%A2%83%E8%AE%BE%E7%BD%AE/

Go get is essentially understood as the first step is to use the Source Code tool, clone, below SRC, then execute go install.

If you don't know where we've set up the Gopath, you can do it at the command line: Go env gets this information,

For example, I am here:
Goarch= "AMD64"
Gobin= ""
Gochar= "6"
Goexe= ""
Gogccflags= "-g-o2-fpic-m64-pthread-fno-common"
Gohostarch= "AMD64"
Gohostos= "Darwin"
Goos= "Darwin"
Gopath= ""
goroot= "/usr/local/go"
Gotooldir= "/usr/local/go/pkg/tool/darwin_amd64"
cgo_enabled= "1"

Once installed, you can start accessing go-tour by typing gotour directly at the command line.

Resources:

Offline Go Guide
http://gotour.qizhanming.com/#3

Google Go-tour Installation
http://jack-boy.iteye.com/blog/1471614

A Tour of Go: Start!
Http://www.cnblogs.com/so-what/archive/2012/10/10/2718970.html

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.