summaryrefslogtreecommitdiff
path: root/init.go
blob: 799add6283d8ce4a702da341bb2356c385d50e68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 11 february 2014
//package ui
package main

// TODO this will be system-defined
func initpanic(err error) {
	panic("failure during init: " + err.Error())
}

func init() {
	initDone := make(chan error)
	go ui(initDone)
	err := <-initDone
	if err != nil {
		initpanic(err)
	}
}