bitrader/utils/panic.go
2024-03-19 00:16:50 +08:00

8 lines
70 B
Go

package utils
func PanicIf(e error) {
if e != nil {
panic(e)
}
}