runtimex

package
v3.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

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 PanicIfFalse

func PanicIfFalse(assertion bool, message string)

PanicIfFalse calls panic if assertion is false.

func PanicIfNil added in v3.14.0

func PanicIfNil(v interface{}, message string)

PanicIfNil calls panic if the given interface is nil.

func PanicIfTrue

func PanicIfTrue(assertion bool, message string)

PanicIfTrue calls panic if assertion is true.

func PanicOnError

func PanicOnError(err error, message string)

PanicOnError calls panic() if err is not nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL