Documentation ¶
Index ¶
- func Parse(route string) (tokens []lex.Token)
- type Router
- func (rt *Router) Add(method, route string, handler http.Handler) error
- func (rt *Router) Delete(route string, handler http.Handler) error
- func (rt *Router) Get(route string, handler http.Handler) error
- func (rt *Router) Middleware(next http.Handler) http.Handler
- func (rt *Router) Patch(route string, handler http.Handler) error
- func (rt *Router) Post(route string, handler http.Handler) error
- func (rt *Router) Put(route string, handler http.Handler) error
- func (rt *Router) ServeHTTP(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.