Skip to content

Commit 4e23fc9

Browse files
committed
update echo
1 parent 663e4da commit 4e23fc9

File tree

9 files changed

+26
-7
lines changed

9 files changed

+26
-7
lines changed

example/web/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
redis "gopkg.in/redis.v5"
77

8-
"github.com/labstack/echo"
8+
"github.com/labstack/echo/v4"
99

1010
"github.com/silentred/toolkit/service"
1111
)

filter/log.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"strconv"
55
"time"
66

7-
"github.com/labstack/echo"
7+
"github.com/labstack/echo/v4"
88
"github.com/labstack/gommon/log"
99
"github.com/silentred/echorus"
1010
"github.com/silentred/toolkit/util"

filter/metrics.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package filter
33
import (
44
"time"
55

6-
"github.com/labstack/echo"
6+
"github.com/labstack/echo/v4"
77
"github.com/prometheus/client_golang/prometheus"
88
"github.com/prometheus/client_golang/prometheus/promhttp"
99
)

filter/recover.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"runtime"
66

7-
"github.com/labstack/echo"
7+
"github.com/labstack/echo/v4"
88
)
99

1010
type (

filter/token.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"encoding/base64"
66
"fmt"
77

8-
"github.com/labstack/echo"
8+
"github.com/labstack/echo/v4"
99
"github.com/silentred/toolkit/util"
1010
)
1111

go.mod

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module github.com/silentred/toolkit
2+
3+
go 1.13
4+
5+
require (
6+
github.com/fatih/color v1.9.0
7+
gopkg.in/urfave/cli.v1 v1.20.0
8+
)

go.sum

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
github.com/fatih/color v1.9.0 h1:8xPHl4/q1VyqGIPif1F+1V3Y3lSmrq01EabUW3CoW5s=
2+
github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
3+
github.com/mattn/go-colorable v0.1.4 h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA=
4+
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
5+
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
6+
github.com/mattn/go-isatty v0.0.11 h1:FxPOTFNqGkuDUGi3H/qkUbQO4ZiBa2brKq5r0l8TGeM=
7+
github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE=
8+
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
9+
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
10+
gopkg.in/urfave/cli.v1 v1.20.0 h1:NdAVW6RYxDif9DhDHaAortIu956m2c0v+09AZBPTbE0=
11+
gopkg.in/urfave/cli.v1 v1.20.0/go.mod h1:vuBzUtMdQeixQj8LVd+/98pzhxNGQoyuPBlsXHOQNO0=

service/web.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"os/signal"
99
"time"
1010

11-
"github.com/labstack/echo"
11+
"github.com/labstack/echo/v4"
1212
)
1313

1414
var (

util/log.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"os"
77
"path/filepath"
88

9-
"github.com/labstack/echo"
9+
"github.com/labstack/echo/v4"
1010
elog "github.com/labstack/gommon/log"
1111
"github.com/silentred/echorus"
1212
cfg "github.com/silentred/toolkit/config"

0 commit comments

Comments
 (0)