Documentation ¶
Overview ¶
Package panicif provides shorthands for error handling. Instead of:
if err != nil { panic(err) }
you can write:
panicif.Err(err)
Be aware that an invocation to Err may not be inlined (last time I checked it's not), so don't use it for a critical piece of code
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Nil ¶ added in v1.1.0
func Nil(val interface{}, format string, a ...interface{})
Nil panics if the first argument is a nil interface, pointer, map, array, slice, chan or funcion
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.