menu

package
v0.0.0-...-1ab0b8d Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetItemForSelect

func GetItemForSelect() []string

GetItemForSelect - Restituisce i nome degli item per la select

func RegisterItem

func RegisterItem(i Item)

RegisterItem - Si occcupa di registrare un nuovo elemento del menù

func ShowMenu

func ShowMenu()

ShowMenu - Si occupa di mostrare il menù di selezione

Types

type Item

type Item interface {
	Name() string
	Label() string
	Action() func()
	IsSelected() bool
	SetSelected()
}

Item -

Jump to

Keyboard shortcuts

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