Files
go-i2p/lib/util/panicf.go
Jeff Becker 0765c8b302 more
2017-08-27 09:59:22 -04:00

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)
}