Documentation ¶ Index ¶ func New(routes []Route) (http.Handler, error) type Route func NewRoute(source string, target *url.URL) (Route, error) func (r Route) Pattern() string func (r Route) Prefix() string func (r Route) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(routes []Route) (http.Handler, error) Types ¶ type Route ¶ type Route struct { Target *url.URL // contains filtered or unexported fields } func NewRoute ¶ func NewRoute(source string, target *url.URL) (Route, error) func (Route) Pattern ¶ func (r Route) Pattern() string func (Route) Prefix ¶ func (r Route) Prefix() string func (Route) String ¶ func (r Route) String() string Source Files ¶ View all Source files handler.go route.go Click to show internal directories. Click to hide internal directories.