Documentation ¶
Overview ¶
Copyright 2024 進捗ゼミ. All rights reserved. Based on the path package, Copyright 2009 The Go Authors. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Copyright 2024 進捗ゼミ. All rights reserved. Based on the path package, Copyright 2009 The Go Authors. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Index ¶
- Variables
- type Handle
- type Param
- type Params
- type Router
- func (r *Router) DELETE(path string, handle Handle)
- func (r *Router) GET(path string, handle Handle)
- func (r *Router) HEAD(path string, handle Handle)
- func (r *Router) Handle(method, path string, handle Handle)
- func (r *Router) Handler(method, path string, handler http.Handler)
- func (r *Router) HandlerFunc(method, path string, handler http.HandlerFunc)
- func (r *Router) OPTIONS(path string, handle Handle)
- func (r *Router) PATCH(path string, handle Handle)
- func (r *Router) POST(path string, handle Handle)
- func (r *Router) PUT(path string, handle Handle)
- func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
View Source
var MatchedRoutePathParam = "$matchedRoutePath"
View Source
var ParamsKey = paramsKey{}
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct { PanicHandler func(http.ResponseWriter, *http.Request, interface{}) HandleOPTIONS bool HandleMethodNotAllowed bool SaveMatchedRoutePath bool RedirectFixedPath bool // contains filtered or unexported fields }
func (*Router) HandlerFunc ¶
func (r *Router) HandlerFunc(method, path string, handler http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.