summaryrefslogtreecommitdiff
path: root/init.go
blob: a47266cfa525c064f19b3d426c6771824dbfc7fe (plain)
1
2
3
4
5
6
7
8
9
10
11
// 11 february 2014
package ui

// Go sets up the UI environment and runs main in a goroutine.
// If initialization fails, Go returns an error.
// Otherwise, Go does not return to its caller until (unless? TODO) the application loop exits, at which point it returns nil.
//
// This model is undesirable, but Cocoa limitations require it.
func Go(main func()) error {
	return ui(main)
}