added assert function
Some checks failed
Go / build (1.19) (push) Failing after 4m5s

This commit is contained in:
Colin Henry 2024-09-06 20:29:29 -07:00
parent 2973912fde
commit 94bc398ea7

11
pkg.go Normal file
View File

@ -0,0 +1,11 @@
package x
import (
"errors"
)
func Assert(cond bool, msg string) {
if cond {
panic(errors.New(msg))
}
}