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 Assert ¶ added in v3.16.0
Assert calls panic if assertion is false. The type passed to panic is an error constructed using errors.New(message).
func PanicIfNil ¶ added in v3.14.0
PanicIfNil calls panic if the given interface is nil. The type passed to panic is an error constructed using errors.New(message).
func PanicIfTrue ¶
PanicIfTrue calls panic if assertion is true. The type passed to panic is an error constructed using errors.New(message).
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.