router

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2025 License: MIT Imports: 7 Imported by: 0

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

type RouteParams map[string]string

func (RouteParams) Get

func (r RouteParams) Get(name string) string

type Router

type Router struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL