Skip to content

Commit 982498c

Browse files
committed
Merge pull request #385 from Costent/v1
Reference echo.v1 for every imports
2 parents b676ad1 + 04c3a02 commit 982498c

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

echo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Example:
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 {

middleware/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"encoding/base64"
55
"net/http"
66

7-
"github.com/labstack/echo"
7+
echo "gopkg.in/labstack/echo.v1"
88
)
99

1010
type (

middleware/auth_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
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

1313
func TestBasicAuth(t *testing.T) {

middleware/compress.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

1616
type (

middleware/compress_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
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

1515
type closeNotifyingRecorder struct {

middleware/logger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
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

1111
const (

middleware/logger_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
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

1414
func TestLogger(t *testing.T) {

middleware/recover.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
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

middleware/recover_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
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

1212
func TestRecover(t *testing.T) {

website/content/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
101101
import (
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

0 commit comments

Comments
 (0)