Files
go-i2p/lib/util/panicf.go

12 lines
182 B
Go
Raw Normal View History

2017-08-27 09:59:22 -04:00
package util
import (
"fmt"
)
// Panicf allows passing formated string to panic()
func Panicf(format string, args ...interface{}) {
s := fmt.Sprintf(format, args...)
panic(s)
}