| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
👉 This is a micro-framework / router built on ⬆ top of the fasthttp package. Alf relies on scalability and his simple structure wich is similar to Flutter projects 📴
✨ Inspired by Flutter & Fiber
👷♂️ Make a router to start faster and simpler my backend projects
📖 Learn
Download the package ⬇
go get github.com/PiterWeb/Alf-RouterImport it into your code 🔠
import (
alf "github.com/PiterWeb/Alf-Router"
)Write this simple structure
err := alf.App(&alf.AppConfig{
Port: "3000",
Routes: alf.CreateRouter([]alf.Route{
{
Path: "/",
Handle: func(ctx *alf.Ctx) error {
_, err := ctx.WriteString("Hello World")
return err
},
Method: "get",
},
}),
})
if err != nil {
panic(err)
}Now you have setup 🔨 an index route
| Back | FazBrowse Home | New Git URL |