Skip to content

🚀 v3 Request: fiber.Ctx type of interface #1824

@balcieren

Description

@balcieren

If fiber.Ctx will be interface , we can customize it.

Example

type CustomCtx struct {
	fiber.Ctx
}

func (c *CustomCtx) Foo() {
	println("foo")
}

func (c *CustomCtx) Bar() {
	println("bar")
}

app.Get("/", func(c CustomCtx) error {
	c.Foo()
	c.Bar()
	return c.JSON("")
})

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions