☰
Debian Codegraph
@
1.16.0-2
1.16.0-1
1.15.0-1
/
/
internal
/
or
/
panic.go
☽
☼
internal/or/panic.go
code
plain
raw
BSD-2-clause
2018-2023 Maxime Soulé
debian/copyright
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
}