diff --git a/cookbook/auto-tls/server.go b/cookbook/auto-tls/server.go index 9c7788e4..5ade3efe 100644 --- a/cookbook/auto-tls/server.go +++ b/cookbook/auto-tls/server.go @@ -3,8 +3,8 @@ package main import ( "net/http" - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" "golang.org/x/crypto/acme/autocert" ) diff --git a/cookbook/cors/server.go b/cookbook/cors/server.go index b2e00033..4f008d1f 100644 --- a/cookbook/cors/server.go +++ b/cookbook/cors/server.go @@ -3,8 +3,8 @@ package main import ( "net/http" - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" ) var ( diff --git a/cookbook/crud/server.go b/cookbook/crud/server.go index fbb5c754..622eb005 100644 --- a/cookbook/crud/server.go +++ b/cookbook/crud/server.go @@ -4,8 +4,8 @@ import ( "net/http" "strconv" - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" ) type ( diff --git a/cookbook/embed-resources/server.go b/cookbook/embed-resources/server.go index c48af8ac..1fed5d07 100644 --- a/cookbook/embed-resources/server.go +++ b/cookbook/embed-resources/server.go @@ -4,7 +4,7 @@ import ( "net/http" "github.com/GeertJohan/go.rice" - "github.com/labstack/echo" + "github.com/labstack/echo/v4" ) func main() { diff --git a/cookbook/file-download/attachment/server.go b/cookbook/file-download/attachment/server.go index 1a05a806..06863034 100644 --- a/cookbook/file-download/attachment/server.go +++ b/cookbook/file-download/attachment/server.go @@ -1,8 +1,8 @@ package main import ( - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" ) func main() { diff --git a/cookbook/file-download/inline/server.go b/cookbook/file-download/inline/server.go index a82ed5db..dcce34a0 100644 --- a/cookbook/file-download/inline/server.go +++ b/cookbook/file-download/inline/server.go @@ -1,8 +1,8 @@ package main import ( - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" ) func main() { diff --git a/cookbook/file-download/server.go b/cookbook/file-download/server.go index 030d52d7..be701ceb 100644 --- a/cookbook/file-download/server.go +++ b/cookbook/file-download/server.go @@ -1,8 +1,8 @@ package main import ( - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" ) func main() { diff --git a/cookbook/file-upload/multiple/server.go b/cookbook/file-upload/multiple/server.go index 5bca6220..e2fb455e 100644 --- a/cookbook/file-upload/multiple/server.go +++ b/cookbook/file-upload/multiple/server.go @@ -6,8 +6,8 @@ import ( "net/http" "os" - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" ) func upload(c echo.Context) error { diff --git a/cookbook/file-upload/single/server.go b/cookbook/file-upload/single/server.go index 5b00ed27..562e4736 100644 --- a/cookbook/file-upload/single/server.go +++ b/cookbook/file-upload/single/server.go @@ -6,8 +6,8 @@ import ( "net/http" "os" - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" ) func upload(c echo.Context) error { diff --git a/cookbook/google-app-engine/app-engine.go b/cookbook/google-app-engine/app-engine.go index 0c1db087..f0214446 100644 --- a/cookbook/google-app-engine/app-engine.go +++ b/cookbook/google-app-engine/app-engine.go @@ -5,7 +5,7 @@ package main import ( "net/http" - "github.com/labstack/echo" + "github.com/labstack/echo/v4" ) func createMux() *echo.Echo { diff --git a/cookbook/google-app-engine/app-managed.go b/cookbook/google-app-engine/app-managed.go index 7b8eacf8..30635270 100644 --- a/cookbook/google-app-engine/app-managed.go +++ b/cookbook/google-app-engine/app-managed.go @@ -5,7 +5,7 @@ package main import ( "net/http" - "github.com/labstack/echo" + "github.com/labstack/echo/v4" "google.golang.org/appengine" ) diff --git a/cookbook/google-app-engine/app-standalone.go b/cookbook/google-app-engine/app-standalone.go index c3b44dc0..6b3da640 100644 --- a/cookbook/google-app-engine/app-standalone.go +++ b/cookbook/google-app-engine/app-standalone.go @@ -3,8 +3,8 @@ package main import ( - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" ) func createMux() *echo.Echo { diff --git a/cookbook/google-app-engine/users.go b/cookbook/google-app-engine/users.go index 19533e51..2684336a 100644 --- a/cookbook/google-app-engine/users.go +++ b/cookbook/google-app-engine/users.go @@ -3,8 +3,8 @@ package main import ( "net/http" - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" ) type ( diff --git a/cookbook/google-app-engine/welcome.go b/cookbook/google-app-engine/welcome.go index 2639b209..4378ee10 100644 --- a/cookbook/google-app-engine/welcome.go +++ b/cookbook/google-app-engine/welcome.go @@ -5,7 +5,7 @@ import ( "io" "net/http" - "github.com/labstack/echo" + "github.com/labstack/echo/v4" ) type ( diff --git a/cookbook/graceful-shutdown/grace/server.go b/cookbook/graceful-shutdown/grace/server.go index 1f9937b0..cf14bd16 100644 --- a/cookbook/graceful-shutdown/grace/server.go +++ b/cookbook/graceful-shutdown/grace/server.go @@ -4,7 +4,7 @@ import ( "net/http" "github.com/facebookgo/grace/gracehttp" - "github.com/labstack/echo" + "github.com/labstack/echo/v4" ) func main() { diff --git a/cookbook/graceful-shutdown/graceful/server.go b/cookbook/graceful-shutdown/graceful/server.go index 39e7b634..e81ed3bf 100644 --- a/cookbook/graceful-shutdown/graceful/server.go +++ b/cookbook/graceful-shutdown/graceful/server.go @@ -4,7 +4,7 @@ import ( "net/http" "time" - "github.com/labstack/echo" + "github.com/labstack/echo/v4" "github.com/tylerb/graceful" ) diff --git a/cookbook/graceful-shutdown/server.go b/cookbook/graceful-shutdown/server.go index 3cfbe8c0..43e82570 100644 --- a/cookbook/graceful-shutdown/server.go +++ b/cookbook/graceful-shutdown/server.go @@ -7,7 +7,7 @@ import ( "os/signal" "time" - "github.com/labstack/echo" + "github.com/labstack/echo/v4" "github.com/labstack/gommon/log" ) diff --git a/cookbook/hello-world/server.go b/cookbook/hello-world/server.go index 06e0718b..a68c4dbe 100644 --- a/cookbook/hello-world/server.go +++ b/cookbook/hello-world/server.go @@ -3,8 +3,8 @@ package main import ( "net/http" - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" ) func main() { diff --git a/cookbook/http2-server-push/server.go b/cookbook/http2-server-push/server.go index 317f6e5a..db889bb7 100644 --- a/cookbook/http2-server-push/server.go +++ b/cookbook/http2-server-push/server.go @@ -3,7 +3,7 @@ package main import ( "net/http" - "github.com/labstack/echo" + "github.com/labstack/echo/v4" ) func main() { diff --git a/cookbook/http2/server.go b/cookbook/http2/server.go index 06e581e4..a170d8a7 100644 --- a/cookbook/http2/server.go +++ b/cookbook/http2/server.go @@ -4,7 +4,7 @@ import ( "fmt" "net/http" - "github.com/labstack/echo" + "github.com/labstack/echo/v4" ) func main() { diff --git a/cookbook/jsonp/server.go b/cookbook/jsonp/server.go index ba46bab0..0ca29499 100644 --- a/cookbook/jsonp/server.go +++ b/cookbook/jsonp/server.go @@ -5,8 +5,8 @@ import ( "net/http" "time" - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" ) func main() { diff --git a/cookbook/jwt/custom-claims/server.go b/cookbook/jwt/custom-claims/server.go index 1f587f8f..a132efcd 100644 --- a/cookbook/jwt/custom-claims/server.go +++ b/cookbook/jwt/custom-claims/server.go @@ -5,8 +5,8 @@ import ( "time" "github.com/dgrijalva/jwt-go" - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" ) // jwtCustomClaims are custom claims extending default ones. diff --git a/cookbook/jwt/map-claims/server.go b/cookbook/jwt/map-claims/server.go index 4418fce5..a49771a8 100644 --- a/cookbook/jwt/map-claims/server.go +++ b/cookbook/jwt/map-claims/server.go @@ -5,8 +5,8 @@ import ( "time" "github.com/dgrijalva/jwt-go" - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" ) func login(c echo.Context) error { diff --git a/cookbook/load-balancing/upstream/server.go b/cookbook/load-balancing/upstream/server.go index 06ab0415..fed38708 100644 --- a/cookbook/load-balancing/upstream/server.go +++ b/cookbook/load-balancing/upstream/server.go @@ -5,8 +5,8 @@ import ( "net/http" "os" - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" ) var index = ` diff --git a/cookbook/middleware/server.go b/cookbook/middleware/server.go index 9c947b6a..f68c0471 100644 --- a/cookbook/middleware/server.go +++ b/cookbook/middleware/server.go @@ -6,7 +6,7 @@ import ( "sync" "time" - "github.com/labstack/echo" + "github.com/labstack/echo/v4" ) type ( diff --git a/cookbook/reverse-proxy/server.go b/cookbook/reverse-proxy/server.go index ce0fab39..a8404406 100644 --- a/cookbook/reverse-proxy/server.go +++ b/cookbook/reverse-proxy/server.go @@ -3,8 +3,8 @@ package main import ( "net/url" - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" ) func main() { diff --git a/cookbook/reverse-proxy/upstream/server.go b/cookbook/reverse-proxy/upstream/server.go index 8a35930d..977f26fb 100644 --- a/cookbook/reverse-proxy/upstream/server.go +++ b/cookbook/reverse-proxy/upstream/server.go @@ -6,8 +6,8 @@ import ( "os" "time" - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" "golang.org/x/net/websocket" ) diff --git a/cookbook/streaming-response/server.go b/cookbook/streaming-response/server.go index 608e38e9..add65f2f 100644 --- a/cookbook/streaming-response/server.go +++ b/cookbook/streaming-response/server.go @@ -5,7 +5,7 @@ import ( "net/http" "time" - "github.com/labstack/echo" + "github.com/labstack/echo/v4" ) type ( diff --git a/cookbook/subdomains/server.go b/cookbook/subdomains/server.go index a502ae2e..3c9bb85a 100644 --- a/cookbook/subdomains/server.go +++ b/cookbook/subdomains/server.go @@ -3,8 +3,8 @@ package main import ( "net/http" - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" ) type ( diff --git a/cookbook/twitter/handler/post.go b/cookbook/twitter/handler/post.go index 5df7ef99..57509e64 100644 --- a/cookbook/twitter/handler/post.go +++ b/cookbook/twitter/handler/post.go @@ -4,7 +4,7 @@ import ( "net/http" "strconv" - "github.com/labstack/echo" + "github.com/labstack/echo/v4" "github.com/labstack/echox/cookbook/twitter/model" "gopkg.in/mgo.v2" "gopkg.in/mgo.v2/bson" diff --git a/cookbook/twitter/handler/user.go b/cookbook/twitter/handler/user.go index 5cd5863d..4791bd25 100644 --- a/cookbook/twitter/handler/user.go +++ b/cookbook/twitter/handler/user.go @@ -5,7 +5,7 @@ import ( "time" "github.com/dgrijalva/jwt-go" - "github.com/labstack/echo" + "github.com/labstack/echo/v4" "github.com/labstack/echox/cookbook/twitter/model" "gopkg.in/mgo.v2" "gopkg.in/mgo.v2/bson" diff --git a/cookbook/twitter/server.go b/cookbook/twitter/server.go index 276b0430..4cf04563 100644 --- a/cookbook/twitter/server.go +++ b/cookbook/twitter/server.go @@ -1,8 +1,8 @@ package main import ( - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" "github.com/labstack/echox/cookbook/twitter/handler" "github.com/labstack/gommon/log" "gopkg.in/mgo.v2" diff --git a/cookbook/websocket/gorilla/server.go b/cookbook/websocket/gorilla/server.go index a1723f94..cb71401b 100644 --- a/cookbook/websocket/gorilla/server.go +++ b/cookbook/websocket/gorilla/server.go @@ -4,8 +4,8 @@ import ( "fmt" "github.com/gorilla/websocket" - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" ) var ( diff --git a/cookbook/websocket/net/server.go b/cookbook/websocket/net/server.go index b3928b48..9d478a53 100644 --- a/cookbook/websocket/net/server.go +++ b/cookbook/websocket/net/server.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/labstack/echo" - "github.com/labstack/echo/middleware" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" "golang.org/x/net/websocket" ) diff --git a/website/content/guide.md b/website/content/guide.md index 982639eb..34633b25 100644 --- a/website/content/guide.md +++ b/website/content/guide.md @@ -27,7 +27,7 @@ package main import ( "net/http" - "github.com/labstack/echo" + "github.com/labstack/echo/v4" ) func main() { diff --git a/website/content/guide/templates.md b/website/content/guide/templates.md index 33449a3a..788e0669 100644 --- a/website/content/guide/templates.md +++ b/website/content/guide/templates.md @@ -84,7 +84,7 @@ import ( "io" "net/http" - "github.com/labstack/echo" + "github.com/labstack/echo/v4" ) // TemplateRenderer is a custom html/template renderer for Echo framework diff --git a/website/content/guide/testing.md b/website/content/guide/testing.md index 333a2d17..f4cc8ede 100644 --- a/website/content/guide/testing.md +++ b/website/content/guide/testing.md @@ -36,7 +36,7 @@ package handler import ( "net/http" - "github.com/labstack/echo" + "github.com/labstack/echo/v4" ) type ( @@ -78,7 +78,7 @@ import ( "strings" "testing" - "github.com/labstack/echo" + "github.com/labstack/echo/v4" "github.com/stretchr/testify/assert" )