chi v3.0.0 Release Notes

Release Date: 2017-06-21 // almost 7 years ago
    • ๐Ÿ’ฅ Major update to chi library with many exciting updates, but also some breaking changes
    • URL parameter syntax changed from /:id to /{id} for even more flexible routing, such as /articles/{month}-{day}-{year}-{slug}, /articles/{id}, and /articles/{id}.{ext} on the same router
    • ๐Ÿ‘Œ Support for regexp for routing patterns, in the form of /{paramKey:regExp} for example: r.Get("/articles/{name:[a-z]+}", h) and chi.URLParam(r, "name")
    • โž• Add Method and MethodFunc to chi.Router to allow routing definitions such as r.Method("GET", "/", h) which provides a cleaner interface for custom handlers like in _examples/custom-handler
    • ๐Ÿ—„ Deprecating mux#FileServer helper function. Instead, we encourage users to create their own using file handler with the stdlib, see _examples/fileserver for an example
    • โž• Add support for LINK/UNLINK http methods via r.Method() and r.MethodFunc()
    • ๐Ÿ“ฆ Moved the chi project to its own organization, to allow chi-related community packages to be easily discovered and supported, at: https://github.com/go-chi
    • NOTE: please update your import paths to "github.com/go-chi/chi"
    • NOTE: chi v2 is still available at https://github.com/go-chi/chi/tree/v2