doa

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Doa

func Doa(b bool)

Doa lets you test if a condition in your code returns true, if not, the program will panic.

func Err

func Err[T any](a T, err error) error

Err just returns error.

func Nil

func Nil(err error)

Nil lets you test if an error in your code is nil, if not, the program will panic.

func Try

func Try[T any](a T, err error) T

Try will give you the embedded value if there is no error returns. If instead error then it 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