Documentation ¶
Index ¶
- func Param(r *http.Request, key string) string
- func Params(ctx context.Context) map[string]string
- type Router
- func (rt *Router) Handle(method string, pattern string, handler http.Handler)
- func (rt *Router) HandleAll(pattern string, handler http.Handler)
- func (rt *Router) HandleAllFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
- func (rt *Router) HandleFunc(method string, pattern string, ...)
- func (rt *Router) ServeHTTP(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Router ¶
type Router struct { NotFound http.HandlerFunc MethodNotAllowed http.HandlerFunc // contains filtered or unexported fields }
func (*Router) HandleAllFunc ¶
func (*Router) HandleFunc ¶
Click to show internal directories.
Click to hide internal directories.