376839b ^
5094ebf ^
1 2
3 4 5 6 7
8
package mux func (m *Mux) Group(prefix string, group func(sm *Mux), middlewares ...Middleware) { child := New() group(child) child.Use(middlewares...) m.groups[prefix] = child }