Compare commits

..

1 Commits

Author SHA1 Message Date
21b811142f Proper version name to the module. 2019-12-18 12:47:27 +01:00
8 changed files with 18 additions and 18 deletions

View File

@ -3,7 +3,7 @@ English version
# Echoswagger
Swagger UI generator for Echo framework, v4
[![Go Report Card](https://goreportcard.com/badge/git.webz.asia/echo-go/echoswagger)](https://goreportcard.com/report/git.webz.asia/echo-go/echoswagger)
[![Go Report Card](https://goreportcard.com/badge/github.com/echo-go/echoswagger)](https://goreportcard.com/report/github.com/echo-go/echoswagger)
[![Build Status](https://travis-ci.org/echo-go/echoswagger.svg?branch=master)](https://travis-ci.org/echo-go/echoswagger)
[![codecov](https://codecov.io/gh/echo-go/echoswagger/branch/master/graph/badge.svg)](https://codecov.io/gh/echo-go/echoswagger)
@ -13,7 +13,7 @@ This is fork of [pangpanglabs/echoswagger](https://github.com/pangpanglabs/echos
With several differences:
* Switched to [Echo framework, v4](https://github.com/labstack/echo/tree/v4.1.11)
* Modular dependencies support
* Switched to [Apache 2.0](https://git.webz.asia/echo-go/echoswagger/blob/master/LICENSE) license
* Switched to [Apache 2.0](https://github.com/echo-go/echoswagger/blob/master/LICENSE) license
* Builder docker script for example code
## Feature
@ -24,7 +24,7 @@ With several differences:
## Installation
```
go get git.webz.asia/echo-go/echoswagger
go get github.com/echo-go/echoswagger/v2
```
## Example
@ -37,7 +37,7 @@ import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"git.webz.asia/echo-go/echoswagger"
"github.com/echo-go/echoswagger/v2"
)
func main() {
@ -242,4 +242,4 @@ default | * | Default value, which type is same as the field's type.
## License
[Apache 2.0](https://git.webz.asia/echo-go/echoswagger/blob/master/LICENSE)
[Apache 2.0](https://github.com/echo-go/echoswagger/blob/master/LICENSE)

View File

@ -26,7 +26,7 @@ import (
"github.com/labstack/echo/v4"
"git.webz.asia/echo-go/echoswagger"
"github.com/echo-go/echoswagger/v2"
)
type PetController struct{}

View File

@ -27,7 +27,7 @@ import (
"github.com/labstack/echo/v4"
"git.webz.asia/echo-go/echoswagger"
"github.com/echo-go/echoswagger/v2"
)
type StoreController struct{}

View File

@ -28,7 +28,7 @@ import (
"github.com/labstack/echo/v4"
"git.webz.asia/echo-go/echoswagger"
"github.com/echo-go/echoswagger/v2"
)
type UserController struct{}

View File

@ -25,7 +25,7 @@ import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"git.webz.asia/echo-go/echoswagger"
"github.com/echo-go/echoswagger/v2"
)
func main() {

View File

@ -30,7 +30,7 @@ import (
"github.com/labstack/echo/v4"
"github.com/stretchr/testify/assert"
"git.webz.asia/echo-go/echoswagger"
"github.com/echo-go/echoswagger/v2"
)
func TestMain(t *testing.T) {

8
go.mod
View File

@ -1,9 +1,9 @@
module git.webz.asia/echo-go/echoswagger/v2
module github.com/echo-go/echoswagger/v2
require (
require (
github.com/labstack/echo v3.3.10+incompatible // indirect
github.com/labstack/echo/v4 v4.1.11
github.com/stretchr/testify v1.4.0
)
)
go 1.13
go 1.13

View File

@ -72,7 +72,7 @@ func TestNew(t *testing.T) {
info: &Info{
Title: "Test project",
Contact: &Contact{
URL: "https://git.webz.asia/echo-go/echoswagger",
URL: "https://github.com/echo-go/echoswagger",
},
},
expectPaths: []string{"/doc", "/doc/swagger.json"},