Documentation
¶
Overview ¶
Package runtimex contains runtime extensions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Assert = PanicIfFalse
Assert calls panic with the given message if the given statement is false.
Functions ¶
func PanicIfFalse ¶
PanicIfFalse calls panic with the given message if the given statement is false.
func PanicIfTrue ¶
PanicIfTrue calls panic with the given message if the given statement is true.
func PanicOnError ¶
PanicOnError calls panic() if err is not nil. The type passed to panic is an error type wrapping the original error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.