From 0cf4ed46a16f9033144c32ac67054b5d5175a553 Mon Sep 17 00:00:00 2001 From: kevin Date: Sat, 29 Aug 2020 00:36:36 +0800 Subject: [PATCH] update shorturl doc --- doc/shorturl.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/shorturl.md b/doc/shorturl.md index e60a1e14..459e4674 100644 --- a/doc/shorturl.md +++ b/doc/shorturl.md @@ -10,8 +10,12 @@ 架构图 -## 2. 创建工作目录并初始化go.mod +## 2. 准备工作 +* 准备goctl工具,在任意目录下进行,目的是为了编译goctl工具 + 1. `git clone https://github.com/tal-tech/go-zero` + 2. 在`tools/goctl`目录下编译goctl工具`go build goctl.go` + 3. 将生成的goctl放到`$PATH`下,确保goctl命令可运行 * 创建工作目录`shorturl` * 在`shorturl`目录下执行`go mod init shorturl`初始化`go.mod`