Go language "msdn" (ubuntu12 & go language installed through apt-Get)

Source: Internet
Author: User

Environment: ubuntu12 & go language installed through apt-Get

I have learned how to view the help document in Python. I feel that go should also have its own help document. Then I tried to open the document and found the godoc command. Run the command to remind you to run the document in this way.

 
Godoc-HTTP =:6060

But when I was prompted that my document does not exist (there is no HTML file), I remembered that the last installation was via apt-get, and it is likely thatProgramWhen the file is not downloaded, you have to first find out if there is any godoc related information in the Ubuntu source and find that there is a real one. Then you can install and download it and then use it.

Godoc-HTTP =:6060# No filesSudoApt-Cache search godoc # output # golang-Doc-Go programming language compiler-Documentation # golang-Src-Go programming language compiler-Source filesSudoApt-GetInstallGolang-Docgodoc-HTTP =:6060# OK

 

Start the browser and open http: // 127.0.0.1: 6060

It seems that the go language is also affected by python, and the method of viewing the document is similar :)

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.