panics

package
v0.6.17 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package panics provides functions to handle panic assertions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmpty

func IsEmpty(result any, fmtAndArgs ...any)

IsEmpty assert result is empty, otherwise will panic

func IsFalse

func IsFalse(result bool, fmtAndArgs ...any)

IsFalse assert result is false, otherwise will panic

func IsNil

func IsNil(result any, fmtAndArgs ...any)

IsNil assert result is nil, otherwise will panic

func IsTrue

func IsTrue(result bool, fmtAndArgs ...any)

IsTrue assert result is true, otherwise will panic

func NotEmpty

func NotEmpty(result any, fmtAndArgs ...any)

NotEmpty assert result is empty, otherwise will panic

func NotNil

func NotNil(result any, fmtAndArgs ...any)

NotNil assert result is non-nil, otherwise will panic

Types

This section is empty.

Jump to

Keyboard shortcuts

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