Documentation
¶
Index ¶
- Constants
- Variables
- func Entry(_, _, val string) (string, bool, error)
- func Error(_, _ string) (bool, error)
- func HasGUI() bool
- func Info(_, _ string) (bool, error)
- func OpenCmd(_ ...string) error
- func OpenFile(_ string) error
- func OpenLog(_ string) error
- func OpenURL(_ string) error
- func Question(_, _ string, _ bool) (bool, error)
- func StartCmd(c string, v ...string) error
- func Warning(_, _ string) (bool, error)
- type MenuItem
Constants ¶
View Source
const SystrayIcon = "files/favicon.png"
SystrayIcon is the icon in the system tray or task bar.
Variables ¶
View Source
var ErrUnsupported = errors.New("unsupported OS")
ErrUnsupported is just an error.
Functions ¶
Types ¶
type MenuItem ¶
type MenuItem interface {
Check()
Checked() bool
Disable()
Disabled() bool
Enable()
Hide()
SetIcon(iconBytes []byte)
SetTemplateIcon(templateIconBytes []byte, regularIconBytes []byte)
SetTitle(title string)
SetTooltip(tooltip string)
Show()
String() string
Uncheck()
Clicked() chan struct{}
}
MenuItem is an interface to allow exposing menu items to operating systems that do not have a menu or a GUI.
Click to show internal directories.
Click to hide internal directories.