github.com/lukewhrit/middleware

misc fiber middleware for use in my projects


License
MIT
Install
go get github.com/lukewhrit/middleware

Documentation

Fiber Middleware

Documentation

Package lukewhrit/middlewares contains various middleware functions that can be used in Fiber projects.

Usage

package main

import (
	"github.com/gofiber/fiber"
	"github.com/lukewhrit/middlewares"
)

func main() {
	app := fiber.New()

	app.Use(middlewares.SecurityHeaders(true))

	app.Get("/", func(c *fiber.Ctx) {
		c.Send("Hello, World!")
	})

	app.Listen(3000)
}

Middlewares

Contributors

License

Fiber Middleware is available under the MIT license. A copy of this license can be found in the license file.