MCPcopy Create free account
hub / github.com/donutloop/mux / Path

Method Path

route.go:174–199  ·  view source on GitHub ↗

Path adds a matcher for the URL path. It accepts a path with zero variables. The template must start with a "/". For example: r := mux.Classic() r.Path("/billing/").Handler(BillingHandler) r.Path("/user/:number/comment/:string").Handler(commentHandler) r.Path("/article/#([a-z]{,10})").Handler(artic

(path string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

HandleMethod · 0.95

Calls 8

extractVarsIndexiesMethod · 0.95
addMatcherMethod · 0.95
NewBadRouteErrorFunction · 0.85
containsRegexFunction · 0.85
newPathRegexMatcherFunction · 0.85
containsVarsFunction · 0.85
newPathWithVarsMatcherFunction · 0.85
pathMatcherTypeAlias · 0.85

Tested by 1