1
0
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:
William Riancho 2016-03-11 11:06:06 +01:00
parent b676ad11cf
commit 04c3a0269d
10 changed files with 13 additions and 13 deletions

View File

@ -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 {

View File

@ -4,7 +4,7 @@ import (
"encoding/base64"
"net/http"
"github.com/labstack/echo"
echo "gopkg.in/labstack/echo.v1"
)
type (

View File

@ -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) {

View File

@ -10,7 +10,7 @@ import (
"strings"
"sync"
"github.com/labstack/echo"
echo "gopkg.in/labstack/echo.v1"
)
type (

View File

@ -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 {

View File

@ -4,8 +4,8 @@ import (
"net"
"time"
"github.com/labstack/echo"
"github.com/labstack/gommon/color"
echo "gopkg.in/labstack/echo.v1"
)
const (

View File

@ -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) {

View File

@ -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

View File

@ -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) {

View File

@ -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