menu

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Separator = &Item{}

Functions

This section is empty.

Types

type Item

type Item struct {
	Key         string `json:"key"`
	Title       string `json:"title,omitempty"`
	Description string `json:"description,omitempty"`
	Badge       string `json:"badge,omitempty"`
	Icon        string `json:"icon,omitempty"`
	Route       string `json:"route,omitempty"`
	Hidden      bool   `json:"hidden"`
	Warning     string `json:"warning,omitempty"`
	Children    Items  `json:"children,omitempty"`
}

func ItemFromString added in v0.3.6

func ItemFromString(bc string, dflt string) *Item

func (*Item) AddChild

func (i *Item) AddChild(child *Item)

func (*Item) Desc added in v0.2.6

func (i *Item) Desc() string

type Items

type Items []*Item

func (Items) Get

func (i Items) Get(key string) *Item

func (Items) GetByPath

func (i Items) GetByPath(path []string) *Item

func (Items) Keys

func (i Items) Keys() []string

func (Items) Visible added in v0.4.8

func (i Items) Visible() Items

Jump to

Keyboard shortcuts

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