router

package
v0.0.0-...-bfb1546 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Link(href string, text string) *vdom.VNode

Types

type Router

type Router struct {
	// contains filtered or unexported fields
}

func New

func New() *Router

func (*Router) Navigate

func (r *Router) Navigate(path string)

func (*Router) Route

func (r *Router) Route(path string, view func() *vdom.VNode)

func (*Router) Switch

func (r *Router) Switch() func(func()) *vdom.VNode

Jump to

Keyboard shortcuts

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