예제 #1
0
func main() {
	rand.Seed(time.Now().UnixNano())

	fmt.Printf("%v - TestErrors running ...\n\n", time.Now())

	ErrorHelper.PublicErrorHelper()

	Core.CoreTest()
}
예제 #2
0
func PublicErrorHelper() {

	// kann ich einen panic in CoreTest() auch heir abfangen (eine Ebene höher)?
	// yesssss ...
	defer func() {
		err := recover()
		if err != nil {
			fmt.Printf("recovered from: %v ...\n", err)
		}
	}()

	fmt.Printf("PublicErrorHelper - executing, after:%v ...\n", time.Since(tsStart))

	Core.CoreTest()

	fmt.Printf("PublicErrorHelper - ... done.\n")

}