menu

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Menu struct {
	PatternName string
	AboutInfo   string
	// contains filtered or unexported fields
}
func (m *Menu) Add(name string, msg string)

Add will create a menu item with the provided name displayed and will send the provided msg over the IPC client.

func (m *Menu) Show(ctx context.Context, log *zerolog.Logger, sockPath string) error

Show will display the menu in the system tray and block until quit or parent is canceled.

Jump to

Keyboard shortcuts

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