From 04c3a0269de492482ec5d69b90da5cef3072a78c Mon Sep 17 00:00:00 2001 From: William Riancho Date: Fri, 11 Mar 2016 11:06:06 +0100 Subject: [PATCH] Reference echo.v1 for every imports --- echo.go | 4 ++-- middleware/auth.go | 2 +- middleware/auth_test.go | 2 +- middleware/compress.go | 2 +- middleware/compress_test.go | 2 +- middleware/logger.go | 2 +- middleware/logger_test.go | 2 +- middleware/recover.go | 2 +- middleware/recover_test.go | 2 +- website/content/index.md | 6 +++--- 10 files changed, 13 insertions(+), 13 deletions(-) diff --git a/echo.go b/echo.go index 4bbedf83..15f9c5b0 100644 --- a/echo.go +++ b/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 { diff --git a/middleware/auth.go b/middleware/auth.go index 1b864df3..c1488178 100644 --- a/middleware/auth.go +++ b/middleware/auth.go @@ -4,7 +4,7 @@ import ( "encoding/base64" "net/http" - "github.com/labstack/echo" + echo "gopkg.in/labstack/echo.v1" ) type ( diff --git a/middleware/auth_test.go b/middleware/auth_test.go index d8b80c97..42e3c9d1 100644 --- a/middleware/auth_test.go +++ b/middleware/auth_test.go @@ -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) { diff --git a/middleware/compress.go b/middleware/compress.go index 8c009555..30222964 100644 --- a/middleware/compress.go +++ b/middleware/compress.go @@ -10,7 +10,7 @@ import ( "strings" "sync" - "github.com/labstack/echo" + echo "gopkg.in/labstack/echo.v1" ) type ( diff --git a/middleware/compress_test.go b/middleware/compress_test.go index dc8b2a46..af468612 100644 --- a/middleware/compress_test.go +++ b/middleware/compress_test.go @@ -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 { diff --git a/middleware/logger.go b/middleware/logger.go index a28b9e2c..37193793 100644 --- a/middleware/logger.go +++ b/middleware/logger.go @@ -4,8 +4,8 @@ import ( "net" "time" - "github.com/labstack/echo" "github.com/labstack/gommon/color" + echo "gopkg.in/labstack/echo.v1" ) const ( diff --git a/middleware/logger_test.go b/middleware/logger_test.go index 298154b4..51dc8572 100644 --- a/middleware/logger_test.go +++ b/middleware/logger_test.go @@ -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) { diff --git a/middleware/recover.go b/middleware/recover.go index 9bc266ce..c6e18765 100644 --- a/middleware/recover.go +++ b/middleware/recover.go @@ -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 diff --git a/middleware/recover_test.go b/middleware/recover_test.go index 3adedebb..4f0de8fc 100644 --- a/middleware/recover_test.go +++ b/middleware/recover_test.go @@ -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) { diff --git a/website/content/index.md b/website/content/index.md index 5332729c..53e17611 100644 --- a/website/content/index.md +++ b/website/content/index.md @@ -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