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 8
8
import (
9
9
"net/http"
10
10
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"
13
13
)
14
14
15
15
func hello(c *echo.Context) error {
Original file line number Diff line number Diff line change 4
4
"encoding/base64"
5
5
"net/http"
6
6
7
- "github.com /labstack/echo"
7
+ echo "gopkg.in /labstack/echo.v1 "
8
8
)
9
9
10
10
type (
Original file line number Diff line number Diff line change 6
6
"net/http/httptest"
7
7
"testing"
8
8
9
- "github.com/labstack/echo"
10
9
"github.com/stretchr/testify/assert"
10
+ echo "gopkg.in/labstack/echo.v1"
11
11
)
12
12
13
13
func TestBasicAuth (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
10
10
"strings"
11
11
"sync"
12
12
13
- "github.com /labstack/echo"
13
+ echo "gopkg.in /labstack/echo.v1 "
14
14
)
15
15
16
16
type (
Original file line number Diff line number Diff line change 8
8
"testing"
9
9
"time"
10
10
11
- "github.com/labstack/echo"
12
11
"github.com/stretchr/testify/assert"
12
+ echo "gopkg.in/labstack/echo.v1"
13
13
)
14
14
15
15
type closeNotifyingRecorder struct {
Original file line number Diff line number Diff line change 4
4
"net"
5
5
"time"
6
6
7
- "github.com/labstack/echo"
8
7
"github.com/labstack/gommon/color"
8
+ echo "gopkg.in/labstack/echo.v1"
9
9
)
10
10
11
11
const (
Original file line number Diff line number Diff line change 7
7
"net/http/httptest"
8
8
"testing"
9
9
10
- "github.com/labstack/echo"
11
10
"github.com/stretchr/testify/assert"
11
+ echo "gopkg.in/labstack/echo.v1"
12
12
)
13
13
14
14
func TestLogger (t * testing.T ) {
Original file line number Diff line number Diff line change 5
5
6
6
"runtime"
7
7
8
- "github.com /labstack/echo"
8
+ echo "gopkg.in /labstack/echo.v1 "
9
9
)
10
10
11
11
// Recover returns a middleware which recovers from panics anywhere in the chain
Original file line number Diff line number Diff line change 5
5
"net/http/httptest"
6
6
"testing"
7
7
8
- "github.com/labstack/echo"
9
8
"github.com/stretchr/testify/assert"
9
+ echo "gopkg.in/labstack/echo.v1"
10
10
)
11
11
12
12
func 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.
88
88
### Installation
89
89
90
90
``` sh
91
- $ go get github.com /labstack/echo
91
+ $ go get gopkg.in /labstack/echo.v1
92
92
```
93
93
94
94
### Hello, World!
@@ -101,8 +101,8 @@ package main
101
101
import (
102
102
" net/http"
103
103
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"
106
106
)
107
107
108
108
// Handler
You can’t perform that action at this time.
0 commit comments