diff --git a/README.md b/README.md index f345e5ab2..ec8a7cc10 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,9 @@ Swag converts Go annotations to Swagger Documentation 2.0. We've created a varie 2. Download swag by using: ```sh $ go get -u github.com/swaggo/swag/cmd/swag + +# 1.16 or newer +$ go install github.com/swaggo/swag/cmd/swag@latest ``` To build from source you need [Go](https://golang.org/dl/) (1.13 or newer). diff --git a/README_zh-CN.md b/README_zh-CN.md index 293ee4958..72e22636d 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -46,7 +46,10 @@ Swag将Go的注释转换为Swagger2.0文档。我们为流行的 [Go Web Framewo 2. 使用如下命令下载swag: ```bash -go get -u github.com/swaggo/swag/cmd/swag +$ go get -u github.com/swaggo/swag/cmd/swag + +# 1.16 及以上版本 +$ go install github.com/swaggo/swag/cmd/swag@latest ``` 从源码开始构建的话,需要有Go环境(1.13及以上版本)。