menu

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: GPL-3.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	ID       string
	Text     string
	Link     string
	Active   bool
	Enabled  bool
	Hidden   bool
	Children []Item `json:",omitempty"`
}

func NewItem

func NewItem(id, link, text string, children []Item) Item
type Menu struct {
	Items []Item
}

func NewMenu

func NewMenu() *Menu
func (m *Menu) AddItem(itm Item)
func (m *Menu) SetActive(link string) bool

Jump to

Keyboard shortcuts

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