Jett v0.3.0 -
What's new?
- New
HTMLrenderer for simple and nested templates
func HTML(w http.ResponseWriter, data interface{}, htmlFiles ...string)Anyroute handler - Assigns a HandlerFunc to the GET, HEAD, OPTIONS, POST, PUT, PATCH & DELETE method for the given path. It DOES NOT actually match any random arbitrary method method.
func (r *Router) Any(path string, handlerFn http.HandlerFunc, middleware ...func(http.Handler) http.Handler)- Middleware returns a slice ([]func(http.Handler) http.Handler) of the middleware stack for the router
func (r *Router) Middleware() []func(http.Handler) http.Handler-
Heartbeatmiddleware - Set up an endpoint to convenientlypingyour server. -
Timeoutmiddleware - Timeout is a middleware that cancels context after a given timeout -
Extensive comments and Go doc coverage
Breaking change -
TEXTrenderer is nowText- see the docs for more.
Jett's API and design are now seemingly stable, with no immediate requirements planned for the future. We will enter stable mode soon, with the main focus on adding more tests and documentation + PRs from the community.
v0.3.0 is here! 🚀