Releases: bmf-san/goblin
Releases · bmf-san/goblin
5.1.0
5.0.5
5.0.4
5.0.3
5.0.2
5.0.1
5.0.0
4.0.0
This tag is deprecated! Please use next version 5.0.0
Renamed some methods for route definition
- Abolished methods such as
GET
,POST
,PUT
,DELETE
, andOPTIONS
, and added newMethods
that can register multiple methods. - Due to the above changes, the
Handler
signature has changed.
Upgrade guide
This version is not backwards compatible and needs to be addressed when updating.
before
r.GET(`/`).Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "/")
})
after
r.Methods(http.MethodGet).Handler(`/`, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "/")
})
What's Changed
- [update] implement methods method by @bmf-san in #40
- Update readme for new methods by @bmf-san in #41
Full Changelog: 3.0.0...4.0.0
3.0.0
Renamed some methods for route definition
- Renamed some methods for route definition
- Removed benchmark tests #34
- Deleted unnecessary processing in Serve HTTP
Upgrade guide
This version is not backwards compatible and needs to be addressed when updating.
If you are using the OPTION
method, rename it to OPTIONS
.
before
r.OPTION(`/`).Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
return
}))
after
r.OPTIONS(`/`).Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
return
}))
What's Changed
Full Changelog: 2.1.0...3.0.0
2.1.0
Description
Reviewed the data structure of the trie tree and changed it so that middleware can be used flexibly.
It is backwards compatible and has no impact on the routing DSL.
What's Changed
Full Changelog: 2.0.1...2.1.0