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

FuncType WalkFunc

tree.go:831–831  ·  view source on GitHub ↗

WalkFunc is the type of the function called for each method and route visited by Walk.

func(method string, route string, handler http.Handler, middlewares ...func(http.Handler) http.Handler) error

Source from the content-addressed store, hash-verified

829
830// WalkFunc is the type of the function called for each method and route visited by Walk.
831type WalkFunc func(method string, route string, handler http.Handler, middlewares ...func(http.Handler) http.Handler) error
832
833// Walk walks any router tree that implements Routes interface.
834func Walk(r Routes, walkFn WalkFunc) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…