Golang 1.0 documents are used. Godoc, go command learning, local run Gotour

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

To install the Environment reference first:

http://toeo.iteye.com/blog/1470598

Looking for a long while did not see the DOC directory structure.

The original doc is the Web Show!!!

Running the Web version Doc document locally

Input

> godoc-http=:6060

Then you can see it in the browser:


Visit your browser for the year and have your own local document center.


Google Go is no mean. Golang.org The above documents are localized. Running the GO program directly inside the web is not localized. Must be accessed through the web. (HTTP://PLAY.GOLANG.ORG/P/3VSQMI4RX5) This address can be directly edited and run directly.


This is the most important. is the full page of the Go language's API functions that can be used.

http://localhost:6060/pkg/


Network installation, running Gotour

See this before you know that go has a way to install files like Debian Apt-get.

http://tour.golang.org/#2

Excellent!!!!!!

Go get Code.google.com/p/go-tour/gotour

The default appears to be with HTTPS. If the connection is not possible, try:

Go get Http://code.google.com/p/go-tour/gotour
 

Although the get command actually requires HG:


Installing HG

http://mercurial.selenic.com/

Then run the command. No error. The instructions have already been downloaded.


Run:

Gotour
 


Found another HTTP port. One of the services on go started.

It's amazing!!!

Related Article

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.