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 ( import (
"net/http" "net/http"
"github.com/labstack/echo" echo "gopkg.in/labstack/echo.v1"
mw "github.com/labstack/echo/middleware" mw "gopkg.in/labstack/echo.v1/middleware"
) )
func hello(c *echo.Context) error { func hello(c *echo.Context) error {

View File

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

View File

@ -6,8 +6,8 @@ import (
"net/http/httptest" "net/http/httptest"
"testing" "testing"
"github.com/labstack/echo"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
echo "gopkg.in/labstack/echo.v1"
) )
func TestBasicAuth(t *testing.T) { func TestBasicAuth(t *testing.T) {

View File

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

View File

@ -8,8 +8,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/labstack/echo"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
echo "gopkg.in/labstack/echo.v1"
) )
type closeNotifyingRecorder struct { type closeNotifyingRecorder struct {

View File

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

View File

@ -7,8 +7,8 @@ import (
"net/http/httptest" "net/http/httptest"
"testing" "testing"
"github.com/labstack/echo"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
echo "gopkg.in/labstack/echo.v1"
) )
func TestLogger(t *testing.T) { func TestLogger(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"runtime" "runtime"
"github.com/labstack/echo" echo "gopkg.in/labstack/echo.v1"
) )
// Recover returns a middleware which recovers from panics anywhere in the chain // Recover returns a middleware which recovers from panics anywhere in the chain

View File

@ -5,8 +5,8 @@ import (
"net/http/httptest" "net/http/httptest"
"testing" "testing"
"github.com/labstack/echo"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
echo "gopkg.in/labstack/echo.v1"
) )
func TestRecover(t *testing.T) { func TestRecover(t *testing.T) {

View File

@ -88,7 +88,7 @@ A fast and unfancy micro web framework for Go.
### Installation ### Installation
```sh ```sh
$ go get github.com/labstack/echo $ go get gopkg.in/labstack/echo.v1
``` ```
### Hello, World! ### Hello, World!
@ -101,8 +101,8 @@ package main
import ( import (
"net/http" "net/http"
"github.com/labstack/echo" echo "gopkg.in/labstack/echo.v1"
mw "github.com/labstack/echo/middleware" mw "gopkg.in/labstack/echo.v1/middleware"
) )
// Handler // Handler