assert

package
v0.0.0-...-9551212 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(e error, message ...string)

Error: is a helper function to assert that an error is nil

Panics if the error is not nil

ALlows setting a custom error message

func IsTrue

func IsTrue(statement bool, message ...string)

IsTrue: Validates that the statement is true

Types

This section is empty.

Jump to

Keyboard shortcuts

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