12 lines
111 B
Go
12 lines
111 B
Go
|
package x
|
||
|
|
||
|
import (
|
||
|
"errors"
|
||
|
)
|
||
|
|
||
|
func Assert(cond bool, msg string) {
|
||
|
if cond {
|
||
|
panic(errors.New(msg))
|
||
|
}
|
||
|
}
|