add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

24
pages.zh/common/godoc.md Normal file
View File

@@ -0,0 +1,24 @@
# godoc
> 查看 Go 包的文档。
> 更多信息:<https://godoc.org/>.
- 显示特定包的帮助:
`godoc {{fmt}}`
- 显示 "fmt" 包的 "Printf" 函数的帮助:
`godoc {{fmt}} {{Printf}}`
- 在 6060 端口作为网络服务器提供文档:
`godoc -http=:{{6060}}`
- 创建索引文件:
`godoc -write_index -index_files={{path/to/file}}`
- 使用给定的索引文件搜索文档:
`godoc -http=:{{6060}} -index -index_files={{path/to/file}}`