runtimex

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

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

func PanicIfFalse(stmt bool, message string)

PanicIfFalse calls panic with the given message if the given statement is false.

func PanicIfTrue

func PanicIfTrue(stmt bool, message string)

PanicIfTrue calls panic with the given message if the given statement is true.

func PanicOnError

func PanicOnError(err error, message string)

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.

Jump to

Keyboard shortcuts

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