initial implementation

This commit is contained in:
juancwu 2026-04-25 20:26:07 +00:00
commit cb373e637b
16 changed files with 777 additions and 1 deletions

15
lightmux.go Normal file
View file

@ -0,0 +1,15 @@
// Package lightmux is a small wrapper around the Go 1.22+ net/http ServeMux
// adding method-named convenience methods, groups, and per-route middleware.
package lightmux
import (
"git.juancwu.dev/juancwu/lightmux/pkg/middleware"
"git.juancwu.dev/juancwu/lightmux/pkg/router"
)
type (
Mux = router.Mux
Middleware = middleware.Middleware
)
func New() *Mux { return router.New() }