From 8cf3fa9932e247205d1cf2be6fd13a9d09ceb9a4 Mon Sep 17 00:00:00 2001 From: Eason Lin Date: Sat, 14 Apr 2018 02:04:08 +0800 Subject: [PATCH] [WIP] fix: fix 'See Declarative Comments Format' link (#19) * fix: fix 'See Declarative Comments Format' link * fix: fix import example lib --- README.md | 2 +- example/api/api.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2820ff2..9768c1d 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ gin middleware to automatically generate RESTful API documentation with Swagger ## Usage ### Start using it -1. Add comments to your API source code, [See Declarative Comments Format](https://github.com/swaggo/swag#declarative-comments-format). +1. Add comments to your API source code, [See Declarative Comments Format](https://swaggo.github.io/swaggo.io/declarative_comments_format/). 2. Download [Swag](https://github.com/swaggo/swag) for Go by using: ```sh $ go get github.com/swaggo/swag/cmd/swag diff --git a/example/api/api.go b/example/api/api.go index 23198f4..036e0d9 100644 --- a/example/api/api.go +++ b/example/api/api.go @@ -3,7 +3,7 @@ package api import ( "fmt" "github.com/gin-gonic/gin" - "github.com/swaggo/swag/example/simple/web" + "github.com/swaggo/swag/example/basic/web" ) //