MCPcopy Create free account
hub / github.com/bwplotka/mimic / Panicf

Function Panicf

panic.go:9–11  ·  view source on GitHub ↗

Panicf allows panic error propagation using sprintf-like formatting.

(format string, a ...interface{})

Source from the content-addressed store, hash-verified

7
8// Panicf allows panic error propagation using sprintf-like formatting.
9func Panicf(format string, a ...interface{}) {
10 panic(fmt.Sprintf("mimic: "+format, a...))
11}
12
13// PanicErr allows to panic because of certain error.
14func PanicErr(err error) {

Callers 3

HashEnvMethod · 0.92
AddMethod · 0.85
PanicErrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected