MCPcopy Create free account
hub / github.com/gofiber/fiber / reset

Method reset

path.go:232–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230}
231
232func (parser *routeParser) reset() {
233 parser.segs = parser.segs[:0]
234 parser.params = parser.params[:0]
235 parser.wildCardCount = 0
236 parser.plusCount = 0
237}
238
239// parseRoute analyzes the route and divides it into segments for constant areas and parameters,
240// this information is needed later when assigning the requests to the declared routes

Callers 1

RoutePatternMatchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected