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

Method Get

mux.go:155–157  ·  view source on GitHub ↗

Get adds the route `pattern` that matches a GET http method to execute the `handlerFn` http.HandlerFunc.

(pattern string, handlerFn http.HandlerFunc)

Source from the content-addressed store, hash-verified

153// Get adds the route `pattern` that matches a GET http method to
154// execute the `handlerFn` http.HandlerFunc.
155func (mx *Mux) Get(pattern string, handlerFn http.HandlerFunc) {
156 mx.handle(mGET, pattern, handlerFn)
157}
158
159// Head adds the route `pattern` that matches a HEAD http method to
160// execute the `handlerFn` http.HandlerFunc.

Callers 1

bigMuxFunction · 0.95

Calls 1

handleMethod · 0.95

Tested by 1

bigMuxFunction · 0.76