Explorar o código

update shorturl doc

kevin %!s(int64=4) %!d(string=hai) anos
pai
achega
93f430a449
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      doc/shorturl.md

+ 7 - 1
doc/shorturl.md

@@ -78,7 +78,13 @@
 
 ## 5. 编写API Gateway代码
 
-* 通过goctl生成`api/shorturl.api`并编辑,为了简洁,去除了文件开头的`info`,代码如下:
+* 在`shorturl/api`目录下通过goctl生成`api/shorturl.api`:
+
+  ```shell
+  goctl api -o shorturl.api
+  ```
+
+* 编辑`api/shorturl.api`,为了简洁,去除了文件开头的`info`,代码如下:
 
   ```go
   type (