MCPcopy
hub / github.com/go-chi/chi / Route

Method Route

chi.go:81–81  ·  view source on GitHub ↗

Route mounts a sub-Router along a `pattern` string.

(pattern string, fn func(r Router))

Source from the content-addressed store, hash-verified

79
80 // Route mounts a sub-Router along a `pattern` string.
81 Route(pattern string, fn func(r Router)) Router
82
83 // Mount attaches another http.Handler along ./pattern/*
84 Mount(pattern string, h http.Handler)

Callers 15

TestMuxMountsFunction · 0.95
TestMuxSubroutesBasicFunction · 0.95
TestMuxSubroutesFunction · 0.95
TestNestedGroupsFunction · 0.95
TestMuxRegexpFunction · 0.95
TestMuxRegexp3Function · 0.95
TestMuxMatchFunction · 0.95
TestMuxFindFunction · 0.95
BenchmarkMuxFunction · 0.95
TestPatternFunction · 0.95

Implementers 1

Muxmux.go

Calls

no outgoing calls

Tested by 15

TestMuxMountsFunction · 0.76
TestMuxSubroutesBasicFunction · 0.76
TestMuxSubroutesFunction · 0.76
TestNestedGroupsFunction · 0.76
TestMuxRegexpFunction · 0.76
TestMuxRegexp3Function · 0.76
TestMuxMatchFunction · 0.76
TestMuxFindFunction · 0.76
BenchmarkMuxFunction · 0.76
TestPatternFunction · 0.76