Home > other > The use of about godoc - Go language beginners
The use of about godoc - Go language beginners
Time:09-17
Tutorial [this tool can only get in the installation directory. The./Go/SRC comments in the content, in addition, it also can be used as a local document browsing the web server, the command line input godoc - HTTP=: 6060, and then use the browser to open http://localhost:6060, you can see the local document browsing server page,]
My operation result is shown in figure
What reason?
CodePudding user response:
You want to use the browser open the URL http://localhost:6060, on a web page to see your document If you go doc command, use the go doc package name and/or function name (this is to check the documents on the console, then didn't want to see the local web service), such as go doc FMT