diff --git a/app_test.go b/app_test.go index aadb70d7d3..c5cc341c6d 100644 --- a/app_test.go +++ b/app_test.go @@ -1202,7 +1202,8 @@ func Benchmark_App_ETag(b *testing.B) { app := New() c := app.AcquireCtx(&fasthttp.RequestCtx{}) defer app.ReleaseCtx(c) - c.Send([]byte("Hello, World!")) + err := c.Send([]byte("Hello, World!")) + utils.AssertEqual(b, nil, err) for n := 0; n < b.N; n++ { setETag(c, false) } diff --git a/ctx.go b/ctx.go index 0bea4fae37..adfebefbad 100644 --- a/ctx.go +++ b/ctx.go @@ -1226,7 +1226,7 @@ func (c *Ctx) Redirect(location string, status ...int) error { return nil } -// Add vars to default view var map binding to template engine. +// Bind Add vars to default view var map binding to template engine. // Variables are read by the Render method and may be overwritten. func (c *Ctx) Bind(vars Map) error { // init viewBindMap - lazy map diff --git a/group.go b/group.go index 669aeab94d..ab74b80e92 100644 --- a/group.go +++ b/group.go @@ -48,7 +48,7 @@ func (grp *Group) Mount(prefix string, fiber *App) Router { return grp } -// Assign name to specific route. +// Name Assign name to specific route. func (grp *Group) Name(name string) Router { grp.app.mutex.Lock() if strings.HasPrefix(grp.Prefix, grp.app.latestGroup.Prefix) { diff --git a/hooks.go b/hooks.go index 0cae4a53a0..f614ef1318 100644 --- a/hooks.go +++ b/hooks.go @@ -1,6 +1,6 @@ package fiber -// Handlers define a function to create hooks for Fiber. +// OnRouteHandler Handlers define a function to create hooks for Fiber. type OnRouteHandler = func(Route) error type OnNameHandler = OnRouteHandler type OnGroupHandler = func(Group) error