package errors // CheckErr is the type of all the check functions here type CheckErr func(error) bool // NoErr is useful for test cases when you want to fulfil the CheckErr type func NoErr(err error) bool { return err == nil }