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 :)