Update README.md

This commit is contained in:
Eason Lin 2017-12-19 18:24:52 +08:00 committed by GitHub
parent 77adc37155
commit 1ff949fa14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -20,7 +20,12 @@ $ go get github.com/swaggo/swag/cmd/swag
```sh
$ swag init
```
4.Import following in your code:
4.Download [gin-swagger](https://github.com/swaggo/gin-swagger) by using:
```sh
$ go get -u github.com/swaggo/gin-swagger
$ go get -u github.com/swaggo/gin-swagger/swaggerFiles
```
And import following in your code:
```go
import "github.com/swaggo/gin-swagger" // gin-swagger middleware