A simple example:
package main
import (
"fmt"
"github.com/getlantern/systray"
)
func main() {
systray.Run(onReady, onExit)
}
func onReady() {
systray.Quit()
}
func onExit() {
fmt.Println("exiting now")
}
It hangs for ever and never prints exiting now.