parent
2973912fde
commit
94bc398ea7
11
pkg.go
Normal file
11
pkg.go
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
package x
|
||||||
|
|
||||||
|
import (
|
||||||
|
"errors"
|
||||||
|
)
|
||||||
|
|
||||||
|
func Assert(cond bool, msg string) {
|
||||||
|
if cond {
|
||||||
|
panic(errors.New(msg))
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user