Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(opts ...Options) widget.BaseWidget
Types ¶
type Options ¶
type Options func(router *Router)
func NotFound ¶
func NotFound(routeBuilder RouteBuilder) Options
func Route ¶
func Route(path string, routeBuilder RouteBuilder) Options
type RouteBuilder ¶
type RouteBuilder func(params RouteParams) widget.BaseWidget
type RouteParams ¶
func (RouteParams) Get ¶
func (r RouteParams) Get(name string) string
type Router ¶
type Router struct {
widget.BaseWidget
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.