Releases: alimy/mir
Releases · alimy/mir
mirc/v2.0.0-alpha.3
mirc/v2.0.0-alpha.3 release
v2.0.0-alpha.3
fix cycle pkg dependents
v2.0.0-alpha.2
v2.0.0-alpha.2 release
v2.0.0-alpha.1
merge from v2
mirc/v2.0.0-alpha.2
mirc/v2.0.0-alpha.2 release
mirc/v2.0.0-alpha.1
merge from v2
mir: go.mod set go version to 1.11
v1.0.1 mir: go.mod set go version to 1.11
Support field tag string for online chain function information
- module/chi: support Router.With(...) feature backend by mir's chain func tag info
- mir: support field tag string for online chain function information. eg:
// entry mux style URN entry
type muxEntry struct {
chainFunc1 Get `mir:"/chainfunc1/#-ChainFunc"`
chainFunc2 Get `mir:"/chainfunc2/#GetChainFunc2&ChainFunc"`
}
func (*muxEntry) ChainFunc1() string {
return "/chainfunc1/"
}
func (*muxEntry) GetChainFunc2() string {
return "/chainfunc2/"
}
func (*muxEntry) ChainFunc() []http.handler {
return []http.handler{}
}
Add chi support
- Add new mir.Engine implement backend by go-chi
support direct assign handler to struct field when handler name is '.'
- support direct assign handler to struct field when handler name is
.
defined as#.
- support user entry's value that defined the mir tag string info as handler when handler name is
.
defined as#.