Proper version name to the module.
This commit is contained in:
parent
f2262c67cf
commit
21b811142f
@ -24,7 +24,7 @@ With several differences:
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
```
|
```
|
||||||
go get github.com/echo-go/echoswagger
|
go get github.com/echo-go/echoswagger/v2
|
||||||
```
|
```
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
@ -37,7 +37,7 @@ import (
|
|||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
"github.com/labstack/echo/v4/middleware"
|
"github.com/labstack/echo/v4/middleware"
|
||||||
|
|
||||||
"github.com/echo-go/echoswagger"
|
"github.com/echo-go/echoswagger/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -26,7 +26,7 @@ import (
|
|||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
|
|
||||||
"github.com/echo-go/echoswagger"
|
"github.com/echo-go/echoswagger/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PetController struct{}
|
type PetController struct{}
|
||||||
|
@ -27,7 +27,7 @@ import (
|
|||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
|
|
||||||
"github.com/echo-go/echoswagger"
|
"github.com/echo-go/echoswagger/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
type StoreController struct{}
|
type StoreController struct{}
|
||||||
|
@ -28,7 +28,7 @@ import (
|
|||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
|
|
||||||
"github.com/echo-go/echoswagger"
|
"github.com/echo-go/echoswagger/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
type UserController struct{}
|
type UserController struct{}
|
||||||
|
@ -25,7 +25,7 @@ import (
|
|||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
"github.com/labstack/echo/v4/middleware"
|
"github.com/labstack/echo/v4/middleware"
|
||||||
|
|
||||||
"github.com/echo-go/echoswagger"
|
"github.com/echo-go/echoswagger/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -30,7 +30,7 @@ import (
|
|||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
"github.com/echo-go/echoswagger"
|
"github.com/echo-go/echoswagger/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestMain(t *testing.T) {
|
func TestMain(t *testing.T) {
|
||||||
|
14
go.mod
14
go.mod
@ -1,9 +1,9 @@
|
|||||||
module github.com/echo-go/echoswagger
|
module github.com/echo-go/echoswagger/v2
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/labstack/echo v3.3.10+incompatible // indirect
|
github.com/labstack/echo v3.3.10+incompatible // indirect
|
||||||
github.com/labstack/echo/v4 v4.1.11
|
github.com/labstack/echo/v4 v4.1.11
|
||||||
github.com/stretchr/testify v1.4.0
|
github.com/stretchr/testify v1.4.0
|
||||||
)
|
)
|
||||||
|
|
||||||
go 1.13
|
go 1.13
|
||||||
|
Loading…
Reference in New Issue
Block a user