go-*: add Chinese translation (#8266)

This commit is contained in:
Minghao Liu
2022-08-01 04:25:57 +08:00
committed by GitHub
parent 79d47906f8
commit b15ee904f7
5 changed files with 92 additions and 0 deletions

24
pages.zh/common/go-doc.md Normal file
View File

@@ -0,0 +1,24 @@
# go doc
> 显示包或符号的文档。
> 更多信息:<https://golang.org/cmd/go/#hdr-Show_documentation_for_package_or_symbol>.
- 显示当前包的文档:
`go doc`
- 显示包文档及导出符号:
`go doc {{encoding/json}}`
- 同时显示符号的文档:
`go doc -all {{encoding/json}}`
- 同时显示源代码:
`go doc -all -src {{encoding/json}}`
- 显示指定的符号:
`go doc -all -src {{encoding/json.Number}}`