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 # Echoswagger
Swagger UI generator for Echo framework, v4 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) [![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) [![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: With several differences:
* Switched to [Echo framework, v4](https://github.com/labstack/echo/tree/v4.1.11) * Switched to [Echo framework, v4](https://github.com/labstack/echo/tree/v4.1.11)
* Modular dependencies support * 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 * Builder docker script for example code
## Feature ## Feature
@ -24,7 +24,7 @@ With several differences:
## Installation ## Installation
``` ```
go get git.webz.asia/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"
"git.webz.asia/echo-go/echoswagger" "github.com/echo-go/echoswagger/v2"
) )
func main() { func main() {
@ -242,4 +242,4 @@ default | * | Default value, which type is same as the field's type.
## License ## 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" "github.com/labstack/echo/v4"
"git.webz.asia/echo-go/echoswagger" "github.com/echo-go/echoswagger/v2"
) )
type PetController struct{} type PetController struct{}

View File

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

View File

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

View File

@ -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"
"git.webz.asia/echo-go/echoswagger" "github.com/echo-go/echoswagger/v2"
) )
func main() { func main() {

View File

@ -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"
"git.webz.asia/echo-go/echoswagger" "github.com/echo-go/echoswagger/v2"
) )
func TestMain(t *testing.T) { func TestMain(t *testing.T) {

14
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 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

View File

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