initial implementation
This commit is contained in:
parent
f8b0abc517
commit
cb373e637b
16 changed files with 777 additions and 1 deletions
15
lightmux.go
Normal file
15
lightmux.go
Normal 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() }
|
||||
Loading…
Add table
Add a link
Reference in a new issue