Skip to content

Commit 4ae19f5

Browse files
committed
添加运行文档,在线预览文档教程
1 parent f1b0a62 commit 4ae19f5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,9 @@ govendor add +external
256256
# 查看你的工作。
257257
govendor list
258258

259+
govendor sync # 从远程仓库拉取依赖
260+
govendor get # 像“go get”一样,但将依赖项复制到“vendor”文件夹中。
261+
259262
# 看看什么是使用包
260263
govendor list -v fmt
261264

@@ -278,6 +281,20 @@ govendor test +local
278281
```
279282

280283

284+
</details>
285+
286+
287+
<details>
288+
<summary>运行文档,在线预览文档</summary>
289+
290+
```bash
291+
# 如果你的 godoc 命令不存在,运行它安装
292+
$ go get -v golang.org/x/tools/cmd/godoc
293+
294+
$ godoc -http=:6060
295+
# 运行上面一条命令,可访问文档http://localhost:6060/
296+
```
297+
281298
</details>
282299

283300
## 运行Go

0 commit comments

Comments
 (0)