mirror of
https://github.com/labstack/echo.git
synced 2024-12-22 20:06:21 +02:00
Reference echo.v1 for every imports
This commit is contained in:
parent
b676ad11cf
commit
04c3a0269d
4
echo.go
4
echo.go
@ -8,8 +8,8 @@ Example:
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/labstack/echo"
|
||||
mw "github.com/labstack/echo/middleware"
|
||||
echo "gopkg.in/labstack/echo.v1"
|
||||
mw "gopkg.in/labstack/echo.v1/middleware"
|
||||
)
|
||||
|
||||
func hello(c *echo.Context) error {
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"encoding/base64"
|
||||
"net/http"
|
||||
|
||||
"github.com/labstack/echo"
|
||||
echo "gopkg.in/labstack/echo.v1"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"net/http/httptest"
|
||||
"testing"
|
||||
|
||||
"github.com/labstack/echo"
|
||||
"github.com/stretchr/testify/assert"
|
||||
echo "gopkg.in/labstack/echo.v1"
|
||||
)
|
||||
|
||||
func TestBasicAuth(t *testing.T) {
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/labstack/echo"
|
||||
echo "gopkg.in/labstack/echo.v1"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/labstack/echo"
|
||||
"github.com/stretchr/testify/assert"
|
||||
echo "gopkg.in/labstack/echo.v1"
|
||||
)
|
||||
|
||||
type closeNotifyingRecorder struct {
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"net"
|
||||
"time"
|
||||
|
||||
"github.com/labstack/echo"
|
||||
"github.com/labstack/gommon/color"
|
||||
echo "gopkg.in/labstack/echo.v1"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
"net/http/httptest"
|
||||
"testing"
|
||||
|
||||
"github.com/labstack/echo"
|
||||
"github.com/stretchr/testify/assert"
|
||||
echo "gopkg.in/labstack/echo.v1"
|
||||
)
|
||||
|
||||
func TestLogger(t *testing.T) {
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
|
||||
"runtime"
|
||||
|
||||
"github.com/labstack/echo"
|
||||
echo "gopkg.in/labstack/echo.v1"
|
||||
)
|
||||
|
||||
// Recover returns a middleware which recovers from panics anywhere in the chain
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"net/http/httptest"
|
||||
"testing"
|
||||
|
||||
"github.com/labstack/echo"
|
||||
"github.com/stretchr/testify/assert"
|
||||
echo "gopkg.in/labstack/echo.v1"
|
||||
)
|
||||
|
||||
func TestRecover(t *testing.T) {
|
||||
|
@ -88,7 +88,7 @@ A fast and unfancy micro web framework for Go.
|
||||
### Installation
|
||||
|
||||
```sh
|
||||
$ go get github.com/labstack/echo
|
||||
$ go get gopkg.in/labstack/echo.v1
|
||||
```
|
||||
|
||||
### Hello, World!
|
||||
@ -101,8 +101,8 @@ package main
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/labstack/echo"
|
||||
mw "github.com/labstack/echo/middleware"
|
||||
echo "gopkg.in/labstack/echo.v1"
|
||||
mw "gopkg.in/labstack/echo.v1/middleware"
|
||||
)
|
||||
|
||||
// Handler
|
||||
|
Loading…
Reference in New Issue
Block a user