blob: 319b1524a38b87571d6adffba092f88b607dbac6 (
plain) (
blame)
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
}
|