Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 621 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 621 Bytes

Middlewares

This is a base stack for minima, for more middlewares you could check Goware or Go-Chi

Credit

All the middlewares here are ported over from Go-Chi's middlewares

⚙️ Setup

go get github.com/gominima/minima

go get github.com/gominima/middlewares

📑 Example

package main

import ("github.com/gominima/minima"
        "github.com/gominima/middleware")

func main() {
	app := minima.New()
        app.UseRaw(middleware.Logger())
	app.Listen(":3000")
}