소스 검색

update docs

kevin 4 년 전
부모
커밋
f03862c378
2개의 변경된 파일9개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      doc/shorturl.md
  2. 8 4
      readme.md

+ 1 - 1
doc/shorturl.md

@@ -492,7 +492,7 @@
 
 因为写入依赖于mysql的写入速度,就相当于压mysql了,所以压测只测试了expand接口,相当于从mysql里读取并利用缓存,shorten.lua里随机从db里获取了100个热key来生成压测请求
 
-![Benchmark](/Users/kevin/Develop/go/opensource/documents/images/shorturl-benchmark.png)
+![Benchmark](images/shorturl-benchmark.png)
 
 可以看出在我的MacBook Pro上能达到3万+的qps。
 

+ 8 - 4
readme.md

@@ -91,11 +91,15 @@ go get -u github.com/tal-tech/go-zero
 
 0. 完整示例请查看
 
-   [从0到1快速构建一个高并发微服务系统](doc/shorturl.md)
+   [快速构建高并发微服务](doc/shorturl.md)
 
-1. 从[这里](https://github.com/tal-tech/go-zero/releases)下载goctl工具
+1. 安装goctl工具
 
-   把goctl放到$PATH的目录下,确保goctl可执行
+   ```shell
+   export GO111MODULE=on export GOPROXY=https://goproxy.cn/,direct go get github.com/tal-tech/go-zero/tools/goctl
+   ```
+
+   确保goctl可执行
 
 2. 定义API文件,比如greet.api,可以在vs code里安装`goctl`插件,支持api语法
 
@@ -191,7 +195,7 @@ Content-Length: 0
 
 ## 8. 文档 (逐步完善中)
 
-* [从0到1快速构建一个高并发微服务系统](doc/shorturl.md)
+* [快速构建高并发微服务](doc/shorturl.md)
 * [goctl使用帮助](doc/goctl.md)
 * [关键字替换和敏感词过滤工具](doc/keywords.md)