Migration: From github.com to git.webz.asia

This commit is contained in:
Alex 2022-08-25 09:31:53 +02:00
parent c7432de845
commit 39f5b3dbbf
8 changed files with 12 additions and 12 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/github.com/echo-go/echoswagger)](https://goreportcard.com/report/github.com/echo-go/echoswagger) [![Go Report Card](https://goreportcard.com/badge/git.webz.asia/echo-go/echoswagger)](https://goreportcard.com/report/git.webz.asia/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://github.com/echo-go/echoswagger/blob/master/LICENSE) license * Switched to [Apache 2.0](https://git.webz.asia/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 github.com/echo-go/echoswagger go get git.webz.asia/echo-go/echoswagger
``` ```
## 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" "git.webz.asia/echo-go/echoswagger"
) )
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://github.com/echo-go/echoswagger/blob/master/LICENSE) [Apache 2.0](https://git.webz.asia/echo-go/echoswagger/blob/master/LICENSE)

View File

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

View File

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

View File

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

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/echo-go/echoswagger/v2 module git.webz.asia/echo-go/echoswagger/v2
require ( require (
github.com/labstack/echo v3.3.10+incompatible // indirect github.com/labstack/echo v3.3.10+incompatible // indirect

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://github.com/echo-go/echoswagger", URL: "https://git.webz.asia/echo-go/echoswagger",
}, },
}, },
expectPaths: []string{"/doc", "/doc/swagger.json"}, expectPaths: []string{"/doc", "/doc/swagger.json"},