Debian Codegraph @

internal/or/panic.go

raw
1 package or
2
3 import "fmt"
4
5 // Panic panics with panicArgs if test is false. It does nothing otherwise.
6 func Panic(test bool, panicArgs ...any) {
7 if !test {
8 panic(fmt.Sprint(panicArgs...))
9 }
10 }