Skip to content

Commit 44b59ad

Browse files
NerzalTobias Theel
andauthored
V2: upgrade modulename to v2 (#1552)
* upgrade modulename to v2 * update tmpl files * change import paths * update more import paths * update more import paths * fix go.mod --------- Co-authored-by: Tobias Theel <[email protected]>
1 parent 21247c7 commit 44b59ad

File tree

94 files changed

+134
-129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+134
-129
lines changed

cmd/swag/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"os"
88
"strings"
99

10-
"github.com/swaggo/swag"
11-
"github.com/swaggo/swag/format"
12-
"github.com/swaggo/swag/gen"
10+
"github.com/swaggo/swag/v2"
11+
"github.com/swaggo/swag/v2/format"
12+
"github.com/swaggo/swag/v2/gen"
1313

1414
"github.com/urfave/cli/v2"
1515
)

doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Package swag converts Go annotations to Swagger Documentation 2.0.
33
See https://github.com/swaggo/swag for more information about swag.
44
*/
5-
package swag // import "github.com/swaggo/swag"
5+
package swag // import "github.com/swaggo/swag/v2"

example/basic/api/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"encoding/json"
55
"net/http"
66

7-
"github.com/swaggo/swag/example/basic/web"
7+
"github.com/swaggo/swag/v2/example/basic/web"
88
)
99

1010
// GetStringByInt example

example/basic/docs/docs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file was generated by swaggo/swag
33
package docs
44

5-
import "github.com/swaggo/swag"
5+
import "github.com/swaggo/swag/v2"
66

77
const docTemplate = `{
88
"schemes": {{ marshal .Schemes }},

example/basic/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"net/http"
55

6-
"github.com/swaggo/swag/example/basic/api"
6+
"github.com/swaggo/swag/v2/example/basic/api"
77
)
88

99
// @title Swagger Example API

example/celler/controller/accounts.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"strconv"
77

88
"github.com/gin-gonic/gin"
9-
"github.com/swaggo/swag/example/celler/httputil"
10-
"github.com/swaggo/swag/example/celler/model"
9+
"github.com/swaggo/swag/v2/example/celler/httputil"
10+
"github.com/swaggo/swag/v2/example/celler/model"
1111
)
1212

1313
// ShowAccount godoc

example/celler/controller/admin.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"net/http"
77

88
"github.com/gin-gonic/gin"
9-
"github.com/swaggo/swag/example/celler/httputil"
10-
"github.com/swaggo/swag/example/celler/model"
9+
"github.com/swaggo/swag/v2/example/celler/httputil"
10+
"github.com/swaggo/swag/v2/example/celler/model"
1111
)
1212

1313
// Auth godoc

example/celler/controller/bottles.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"strconv"
66

77
"github.com/gin-gonic/gin"
8-
"github.com/swaggo/swag/example/celler/httputil"
9-
"github.com/swaggo/swag/example/celler/model"
8+
"github.com/swaggo/swag/v2/example/celler/httputil"
9+
"github.com/swaggo/swag/v2/example/celler/model"
1010
)
1111

1212
// ShowBottle godoc

example/celler/controller/examples.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strconv"
77

88
"github.com/gin-gonic/gin"
9-
"github.com/swaggo/swag/example/celler/httputil"
9+
"github.com/swaggo/swag/v2/example/celler/httputil"
1010
)
1111

1212
// PingExample godoc

example/celler/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/gofrs/uuid v4.2.0+incompatible
88
github.com/swaggo/files v0.0.0-20210815190702-a29dd2bc99b2
99
github.com/swaggo/gin-swagger v1.4.2
10-
github.com/swaggo/swag v1.8.1
10+
github.com/swaggo/swag/v2 v2.0.0-beta
1111
)
1212

1313
require (

0 commit comments

Comments
 (0)