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