Skip to content

Instantly share code, notes, and snippets.

@ayonliu
Created June 17, 2014 06:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayonliu/d6279cf1ec0c2f06ddb8 to your computer and use it in GitHub Desktop.
Save ayonliu/d6279cf1ec0c2f06ddb8 to your computer and use it in GitHub Desktop.
Golang docs

查看某一个buildin包里面的函数:godoc buildin,例如查看http包文档,那么执行: godoc net/http 执行 godoc fmt Printf, 可以查看相应的代码 执行 godoc -src fmt Printf, 可以查看相应的代码

通过命令在命令行执行 godoc -http=:端口号 比如godoc -http=:8080。然后在浏览器中打开127.0.0.1:8080,你将会看到一个golang.org的本地copy版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment