func main() { client := &fireflyClient{ uiCh: make(chan *uiCmd), exitCh: make(chan error, 1), chExitFuncs: make(chan func(), 10), } systray.Run(client._main) }
func main() { // Should be called at the very beginning of main(). systray.Run(onReady) }
func runOnSystrayReady(f func()) { systray.Run(f) }