MCPcopy Create free account
hub / github.com/devfeel/dotweb / NewGroup

Function NewGroup

group.go:43–48  ·  view source on GitHub ↗
(prefix string, server *HttpServer)

Source from the content-addressed store, hash-verified

41}
42
43func NewGroup(prefix string, server *HttpServer) Group {
44 g := &xGroup{prefix: prefix, server: server, allRouterExpress: make(map[string]struct{})}
45 server.groups = append(server.groups, g)
46 server.Logger().Debug("DotWeb:Group NewGroup ["+prefix+"]", LogTarget_HttpServer)
47 return g
48}
49
50// Use implements `Router#Use()` for sub-routes within the Group.
51func (g *xGroup) Use(ms ...Middleware) Group {

Callers 2

GroupMethod · 0.85
GroupMethod · 0.85

Calls 2

DebugMethod · 0.65
LoggerMethod · 0.45

Tested by

no test coverage detected