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

20
pages.zh/common/gofmt.md Normal file
View File

@@ -0,0 +1,20 @@
# gofmt
> 格式化 Go 源代码。
> 更多信息:<https://golang.org/cmd/gofmt/>.
- 格式化文件并将结果显示到控制台:
`gofmt {{source.go}}`
- 格式化文件,覆盖原始文件就地:
`gofmt -w {{source.go}}`
- 格式化文件,然后简化代码,覆盖原始文件:
`gofmt -s -w {{source.go}}`
- 打印所有(包括冗余)错误:
`gofmt -e {{source.go}}`