package common func CheckFatal(e error) { if e != nil { Error.Fatal(e) } } func CheckWarn(e error) { if e != nil { Warning.Println(e) } } // Assert test is true, panic otherwise func Assert(test bool) { if !test { panic("Assertion failure") } }