mirror of
https://github.com/go-i2p/go-i2p.git
synced 2025-07-06 06:24:20 -04:00
12 lines
182 B
Go
12 lines
182 B
Go
package util
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// Panicf allows passing formated string to panic()
|
|
func Panicf(format string, args ...interface{}) {
|
|
s := fmt.Sprintf(format, args...)
|
|
panic(s)
|
|
}
|