Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RouterGroup ¶
type RouterGroup struct {
Prefix string
Middlewares []Middleware
Mux *http.ServeMux
}
func NewRouterGroup ¶
func NewRouterGroup(prefix string, mux *http.ServeMux) *RouterGroup
func (*RouterGroup) HandleFunc ¶
func (g *RouterGroup) HandleFunc(method string, pattern string, handlerFunc http.HandlerFunc)
func (*RouterGroup) Use ¶
func (g *RouterGroup) Use(mw Middleware)
Click to show internal directories.
Click to hide internal directories.