diff --git a/pkg.go b/pkg.go new file mode 100644 index 0000000..51bb964 --- /dev/null +++ b/pkg.go @@ -0,0 +1,11 @@ +package x + +import ( + "errors" +) + +func Assert(cond bool, msg string) { + if cond { + panic(errors.New(msg)) + } +}