Documentation ¶
Overview ¶
Package runtimex contains runtime extensions. This package is inspired to https://pkg.go.dev/github.com/m-lab/go/rtx, except that it's simpler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PanicIfNil ¶ added in v3.14.0
func PanicIfNil(v interface{}, message string)
PanicIfNil calls panic if the given interface is nil.
func PanicIfTrue ¶
PanicIfTrue calls panic if assertion is true.
func PanicOnError ¶
PanicOnError calls panic() if err is not nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.