Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-05-02 | fix tests and examples to match the router.Handler() change | tjpcc | |
2023-05-01 | name change gus -> sliderule | tjpcc | |
2023-02-15 | Switch Handler to an interface. | tjpcc | |
HandlerFunc is much better as a function returning a Handler, rather than a newtype for the function type itself. This way there is no confusion creating a type-inferenced variable with HandlerFunc(func(... and then using a HandlerFunc where a Handler is expected. Much better to only have one public type. | |||
2023-02-14 | Router improvements. | tjpcc | |
- test coverage for Router, not just PathTree - Router.Mount() now flattens routes into the parent router - Router.Use() implemented to set middleware on a router itself |