File tree Expand file tree Collapse file tree 10 files changed +13
-13
lines changed Expand file tree Collapse file tree 10 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 88 import (
99 "net/http"
1010
11- "github.com /labstack/echo"
12- mw "github.com /labstack/echo/middleware"
11+ echo "gopkg.in /labstack/echo.v1 "
12+ mw "gopkg.in /labstack/echo.v1 /middleware"
1313 )
1414
1515 func hello(c *echo.Context) error {
Original file line number Diff line number Diff line change 44 "encoding/base64"
55 "net/http"
66
7- "github.com /labstack/echo"
7+ echo "gopkg.in /labstack/echo.v1 "
88)
99
1010type (
Original file line number Diff line number Diff line change 66 "net/http/httptest"
77 "testing"
88
9- "github.com/labstack/echo"
109 "github.com/stretchr/testify/assert"
10+ echo "gopkg.in/labstack/echo.v1"
1111)
1212
1313func TestBasicAuth (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
1010 "strings"
1111 "sync"
1212
13- "github.com /labstack/echo"
13+ echo "gopkg.in /labstack/echo.v1 "
1414)
1515
1616type (
Original file line number Diff line number Diff line change 88 "testing"
99 "time"
1010
11- "github.com/labstack/echo"
1211 "github.com/stretchr/testify/assert"
12+ echo "gopkg.in/labstack/echo.v1"
1313)
1414
1515type closeNotifyingRecorder struct {
Original file line number Diff line number Diff line change 44 "net"
55 "time"
66
7- "github.com/labstack/echo"
87 "github.com/labstack/gommon/color"
8+ echo "gopkg.in/labstack/echo.v1"
99)
1010
1111const (
Original file line number Diff line number Diff line change 77 "net/http/httptest"
88 "testing"
99
10- "github.com/labstack/echo"
1110 "github.com/stretchr/testify/assert"
11+ echo "gopkg.in/labstack/echo.v1"
1212)
1313
1414func TestLogger (t * testing.T ) {
Original file line number Diff line number Diff line change 55
66 "runtime"
77
8- "github.com /labstack/echo"
8+ echo "gopkg.in /labstack/echo.v1 "
99)
1010
1111// Recover returns a middleware which recovers from panics anywhere in the chain
Original file line number Diff line number Diff line change 55 "net/http/httptest"
66 "testing"
77
8- "github.com/labstack/echo"
98 "github.com/stretchr/testify/assert"
9+ echo "gopkg.in/labstack/echo.v1"
1010)
1111
1212func TestRecover (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ A fast and unfancy micro web framework for Go.
8888### Installation
8989
9090``` sh
91- $ go get github.com /labstack/echo
91+ $ go get gopkg.in /labstack/echo.v1
9292```
9393
9494### Hello, World!
@@ -101,8 +101,8 @@ package main
101101import (
102102 " net/http"
103103
104- " github.com /labstack/echo"
105- mw " github.com /labstack/echo/middleware"
104+ echo " gopkg.in /labstack/echo.v1 "
105+ mw " gopkg.in /labstack/echo.v1 /middleware"
106106)
107107
108108// Handler
You can’t perform that action at this time.
0 commit comments