Skip to content

Use latest version #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cookbook/auto-tls/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions cookbook/cors/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 2 additions & 2 deletions cookbook/crud/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion cookbook/embed-resources/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"

"github.com/GeertJohan/go.rice"
"github.com/labstack/echo"
"github.com/labstack/echo/v4"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions cookbook/file-download/attachment/server.go
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions cookbook/file-download/inline/server.go
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions cookbook/file-download/server.go
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions cookbook/file-upload/multiple/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions cookbook/file-upload/single/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion cookbook/google-app-engine/app-engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package main
import (
"net/http"

"github.com/labstack/echo"
"github.com/labstack/echo/v4"
)

func createMux() *echo.Echo {
Expand Down
2 changes: 1 addition & 1 deletion cookbook/google-app-engine/app-managed.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package main
import (
"net/http"

"github.com/labstack/echo"
"github.com/labstack/echo/v4"
"google.golang.org/appengine"
)

Expand Down
4 changes: 2 additions & 2 deletions cookbook/google-app-engine/app-standalone.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions cookbook/google-app-engine/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion cookbook/google-app-engine/welcome.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"net/http"

"github.com/labstack/echo"
"github.com/labstack/echo/v4"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion cookbook/graceful-shutdown/grace/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"

"github.com/facebookgo/grace/gracehttp"
"github.com/labstack/echo"
"github.com/labstack/echo/v4"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion cookbook/graceful-shutdown/graceful/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"
"time"

"github.com/labstack/echo"
"github.com/labstack/echo/v4"
"github.com/tylerb/graceful"
)

Expand Down
2 changes: 1 addition & 1 deletion cookbook/graceful-shutdown/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os/signal"
"time"

"github.com/labstack/echo"
"github.com/labstack/echo/v4"
"github.com/labstack/gommon/log"
)

Expand Down
4 changes: 2 additions & 2 deletions cookbook/hello-world/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion cookbook/http2-server-push/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"net/http"

"github.com/labstack/echo"
"github.com/labstack/echo/v4"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion cookbook/http2/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"net/http"

"github.com/labstack/echo"
"github.com/labstack/echo/v4"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions cookbook/jsonp/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions cookbook/jwt/custom-claims/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions cookbook/jwt/map-claims/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions cookbook/load-balancing/upstream/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `
Expand Down
2 changes: 1 addition & 1 deletion cookbook/middleware/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sync"
"time"

"github.com/labstack/echo"
"github.com/labstack/echo/v4"
)

type (
Expand Down
4 changes: 2 additions & 2 deletions cookbook/reverse-proxy/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions cookbook/reverse-proxy/upstream/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion cookbook/streaming-response/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"
"time"

"github.com/labstack/echo"
"github.com/labstack/echo/v4"
)

type (
Expand Down
4 changes: 2 additions & 2 deletions cookbook/subdomains/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion cookbook/twitter/handler/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion cookbook/twitter/handler/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions cookbook/twitter/server.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions cookbook/websocket/gorilla/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 2 additions & 2 deletions cookbook/websocket/net/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion website/content/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ package main
import (
"net/http"

"github.com/labstack/echo"
"github.com/labstack/echo/v4"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion website/content/guide/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions website/content/guide/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ package handler
import (
"net/http"

"github.com/labstack/echo"
"github.com/labstack/echo/v4"
)

type (
Expand Down Expand Up @@ -78,7 +78,7 @@ import (
"strings"
"testing"

"github.com/labstack/echo"
"github.com/labstack/echo/v4"
"github.com/stretchr/testify/assert"
)

Expand Down