Documentation ¶
Overview ¶
Copyright 2024 Jake Nichols (MIT License)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Router ¶
Router returns an http.Handler that, for any input request r, forwards to the handler at r.URL.Path.
Types ¶
type Methods ¶
type RouteType ¶
type RouteType struct {
// contains filtered or unexported fields
}
func Handle ¶
Handle returns a RouteType with the path and handler.
func HandleFunc ¶
func HandleFunc(path string, handler http.HandlerFunc) (r RouteType)
HandleFunc returns a RouteType with the path and handler function.
Click to show internal directories.
Click to hide internal directories.