Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Helper = fx.Annotated{ Target: NewHelper, Group: "rb.helper", }
Helper annotates all mux helpers as helper
Functions ¶
Types ¶
type M ¶
type M interface { CurrentRoute(req *http.Request) string URLParam(r *http.Request, k string) string URL(name string, pairs ...string) *url.URL }
M is an interface for reading mux information
type Mux ¶
type Mux struct {
// contains filtered or unexported fields
}
Mux implements the m interface
func (*Mux) CurrentRoute ¶
CurrentRoute returns the name of the current route
Click to show internal directories.
Click to hide internal directories.