Versions in this module Expand all Collapse all v1 v1.5.0 Oct 27, 2026 Changes in this version + var ErrNoDisplay = errors.New("no display available for the native desktop window") + func AcquireSingleInstance(key string) bool + func CustomFrame() bool + func DefaultMenu(extra []*mygo.MenuItem) *mygo.Menu + func Run(o Options) error + type Controller struct + func (c *Controller) CloseWindow() + func (c *Controller) Focused() bool + func (c *Controller) IsMaximized() bool + func (c *Controller) Minimize() + func (c *Controller) Notify(id, title, body string) + func (c *Controller) Quit() + func (c *Controller) Quitting() bool + func (c *Controller) SetTitle(title string) + func (c *Controller) SetTrayLabels(l TrayLabels) + func (c *Controller) SetTrayOnClose(on bool) + func (c *Controller) SetTrayProjects(p []TrayProject) + func (c *Controller) Show() + func (c *Controller) ToggleFullScreen() + func (c *Controller) ToggleMaximize() + func (c *Controller) TrayAvailable() bool + func (c *Controller) UseTray() bool + func (c *Controller) Window() *mygo.Window + type Options struct + Ctx context.Context + Height int + Menu []*mygo.MenuItem + Name string + OnReady func(c *Controller) + OnSecondInstance func(args []string) + OnWindow func(w *mygo.Window) + Title string + Tray TrayOptions + View func(c *ui.Context) + Width int + type TrayLabels struct + Projects string + Quit string + Settings string + Show string + type TrayOptions struct + Labels TrayLabels + OnProject func(id string) + OnSettings func() + type TrayProject struct + Current bool + ID string + Name string