Versions in this module Expand all Collapse all v2 v2.14.4 Aug 5, 2026 Changes in this version + const DefaultMaxImageHeight + const DefaultMaxImageWidth + const Key0 + const Key1 + const Key2 + const Key3 + const Key4 + const Key5 + const Key6 + const Key7 + const Key8 + const Key9 + const KeyA + const KeyB + const KeyC + const KeyD + const KeyDown + const KeyE + const KeyEsc + const KeyF + const KeyF1 + const KeyF10 + const KeyF11 + const KeyF12 + const KeyF2 + const KeyF3 + const KeyF4 + const KeyF5 + const KeyF6 + const KeyF7 + const KeyF8 + const KeyF9 + const KeyG + const KeyH + const KeyI + const KeyJ + const KeyK + const KeyL + const KeyLeft + const KeyM + const KeyN + const KeyO + const KeyP + const KeyQ + const KeyR + const KeyReturn + const KeyRight + const KeyS + const KeySpace + const KeyT + const KeyTab + const KeyU + const KeyUp + const KeyV + const KeyW + const KeyX + const KeyY + const KeyZ + const SnapshotSchema + const WeightBlack + const WeightBold + const WeightHeavy + const WeightLight + const WeightMedium + const WeightRegular + const WeightSemibold + const WeightThin + const WeightUltraLight + var Blue = Color + var Gray = Color + var Green = Color + var LabelPrimary = Color + var LabelQuaternary = Color + var LabelSecondary = Color + var LabelTertiary = Color + var Red = Color + var SystemBlue = Color + var SystemBrown = Color + var SystemCyan = Color + var SystemGray = Color + var SystemGreen = Color + var SystemIndigo = Color + var SystemMint = Color + var SystemOrange = Color + var SystemPink = Color + var SystemPurple = Color + var SystemRed = Color + var SystemTeal = Color + var SystemYellow = Color + var Yellow = Color + type Alert struct + Buttons []string + InformativeText string + Inputs []AlertInput + MessageText string + type AlertClicked struct + Button int + Inputs []string + type AlertInput struct + Placeholder string + Type InputType + type Application struct + AutoUpdate struct{ ... } + Children func() []MenuItem + Clicked func() + Label string + Name string + NotificationResponder func(id, response string) + QuitLabel string + StartAtLoginLabel string + func App() *Application + func (a *Application) Alert(alert Alert) AlertClicked + func (a *Application) GracefulShutdownHandles() (*sync.WaitGroup, context.Context) + func (a *Application) HideStartup() + func (a *Application) MenuChanged() + func (a *Application) Notification(notification Notification) + func (a *Application) NotificationAuthorization() string + func (a *Application) RunApplication() + func (a *Application) SetMenuState(state *MenuState) + type Color struct + A uint8 + B uint8 + G uint8 + R uint8 + Semantic string + func (c Color) IsZero() bool + type FontWeight float64 + type Image struct + Clicked func() + Data []byte + MaxHeight int + MaxWidth int + Path string + type InputType int + const InputPassword + const InputText + type MenuItem interface + type MenuState struct + Image string + ImageData []byte + ImageHeight float64 + ImageTemplate bool + Runs []TextRun + Title string + type ModifierMask uint32 + const ModAlt + const ModCmd + const ModCtrl + const ModShift + type Notification struct + ActionButton string + CloseButton string + Identifier string + Message string + RemoveFromNotificationCenter bool + ResponsePlaceholder string + Silent bool + Subtitle string + Title string + type Regular struct + Children func() []MenuItem + Clicked func() + Color Color + FontSize int + FontWeight FontWeight + Image string + Monospaced bool + Runs []TextRun + Shortcut *Shortcut + State bool + Subtitle []TextRun + Text string + type Search struct + Placeholder string + Results func(query string) []MenuItem + type Separator struct + type Shadow struct + Blur float64 + Color Color + OffsetX float64 + OffsetY float64 + type Shortcut struct + KeyCode uint16 + Modifiers ModifierMask + func (s Shortcut) IsZero() bool + type Snapshot struct + Items []SnapshotItem + Schema string + State *MenuState + type SnapshotItem struct + Children []SnapshotItem + Color Color + FontSize int + FontWeight FontWeight + Image string + ImageHeight int + ImageSource string + ImageWidth int + Monospaced bool + Runs []TextRun + Shortcut *Shortcut + State bool + Subtitle []TextRun + Text string + Type string + type TextRun struct + Background Color + Badge bool + Color Color + FontSize int + FontWeight FontWeight + Monospaced bool + Shadow *Shadow + Strikethrough bool + StrikethroughColor Color + Text string + Underline bool + UnderlineColor Color + type UserDefaults struct + func Defaults() *UserDefaults + func (u *UserDefaults) Boolean(key string) bool + func (u *UserDefaults) Integer(key string) int + func (u *UserDefaults) Marshal(key string, v interface{}) error + func (u *UserDefaults) SetBoolean(key string, value bool) + func (u *UserDefaults) SetInteger(key string, value int) + func (u *UserDefaults) SetString(key, value string) + func (u *UserDefaults) String(key string) string + func (u *UserDefaults) Unmarshal(key string, v interface{}) error