mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 03:34:15 +08:00
fix: godoc command on 09.6.md
This commit is contained in:
@@ -7,7 +7,7 @@ godoc工具(第 3.6 节)在显示自定义包中的注释也有很好的效
|
||||
- 在 doc_examples 目录下我们有第 11.7 节中的用来排序的 go 文件,文件中有一些注释(文件需要未编译)
|
||||
- 命令行下进入目录下并输入命令:
|
||||
|
||||
godoc -http =:6060 -goroot="."
|
||||
godoc -http=:6060 -goroot="."
|
||||
|
||||
(`.` 是指当前目录,-goroot 参数可以是 `/path/to/my/package1` 这样的形式指出 package1 在你源码中的位置或接受用冒号形式分隔的路径,无根目录的路径为相对于当前目录的相对路径)
|
||||
|
||||
|
Reference in New Issue
Block a user