Type MenuItem
type MenuItem struct {
// Title is the entry's text. It is shown as written: no character in it
// marks a shortcut.
Title string
// Separator makes the entry a dividing line; its other fields are ignored.
Separator bool
// Disabled shows the entry dimmed and not selectable, as a heading or a
// line of status.
Disabled bool
// Checked puts a check mark beside the entry.
Checked bool
// Submenu, when not empty, makes the entry open a menu of these.
Submenu []MenuItem
// OnSelect runs on the event-loop thread, after the menu has closed, when
// the user chooses the entry. An entry with a Submenu is not selectable.
OnSelect func()
}MenuItem is one entry of a status item's menu.