Skip to content

Commit

Permalink
fix: README_zh-CN.md translate bug (swaggo#1202)
Browse files Browse the repository at this point in the history
Co-authored-by: victorwwang <[email protected]>
  • Loading branch information
2 people authored and jixiufeng committed May 17, 2022
1 parent d18c715 commit 0f8e057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ $ go install github.com/swaggo/swag/cmd/swag@latest
swag init
```

确保导入了生成的`docs/docs.go`文件,这样特定的配置文件才会被初始化。如果通用API指数没有写在`main.go`中,可以使用`-g`标识符来告知swag。
确保导入了生成的`docs/docs.go`文件,这样特定的配置文件才会被初始化。如果通用API注释没有写在`main.go`中,可以使用`-g`标识符来告知swag。

```bash
swag init -g http/api.go
Expand Down

0 comments on commit 0f8e057

Please sign in to comment.