Type Host
type Host interface {
// OpenWindow creates and presents a window. closed must be called exactly
// once, after the window has released its resources.
OpenWindow(config Config, canvas *ui.Canvas, closed func()) (WindowControl, error)
// AddStatusItem puts an icon in the system's status area.
AddStatusItem(config StatusItemConfig) (StatusItemControl, error)
// Quit closes every window, close requests notwithstanding, and ends the
// loop. It is safe to call from any goroutine.
Quit()
}Host is the event loop an Application runs on. The native backends provide one over their platform adapters; a development runner such as package headless provides one to drive an application without a window.