Skip to content

Commit c90bc4e

Browse files
author
Sergio Andres Virviescas Santana
committed
Change buaazp fasthttprouter to fasthttp/router
1 parent 5e776b5 commit c90bc4e

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

Gopkg.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
branch = "master"
44

55
[[constraint]]
6-
name = "github.com/buaazp/fasthttprouter"
6+
name = "github.com/fasthttp/router"
77
branch = "master"
88

99
[[constraint]]

atreugo.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"syscall"
1010
"time"
1111

12-
"github.com/buaazp/fasthttprouter"
12+
"github.com/fasthttp/router"
1313
"github.com/savsgio/go-logger"
1414
"github.com/valyala/fasthttp"
1515
)
@@ -22,15 +22,15 @@ func New(cfg *Config) *Atreugo {
2222
cfg.LogLevel = logger.INFO
2323
}
2424

25-
router := fasthttprouter.New()
25+
r := router.New()
2626

27-
handler := router.Handler
27+
handler := r.Handler
2828
if cfg.Compress {
2929
handler = fasthttp.CompressHandler(handler)
3030
}
3131

3232
server := &Atreugo{
33-
router: router,
33+
router: r,
3434
server: &fasthttp.Server{
3535
Handler: handler,
3636
Name: "AtreugoFastHTTPServer",

types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package atreugo
22

33
import (
4-
"github.com/buaazp/fasthttprouter"
4+
"github.com/fasthttp/router"
55
"github.com/savsgio/go-logger"
66
"github.com/valyala/fasthttp"
77
)
@@ -25,7 +25,7 @@ type Config struct {
2525
// Atreugo struct for make up a server
2626
type Atreugo struct {
2727
server *fasthttp.Server
28-
router *fasthttprouter.Router
28+
router *router.Router
2929
middlewares []Middleware
3030
log *logger.Logger
3131
cfg *Config

0 commit comments

Comments
 (0)