guards

package
v0.0.0-...-14dca07 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoError

func NoError(err error)

NoError panic when passed error is not nil.

func ShouldBeDefined

func ShouldBeDefined(object any, message string)

ShouldBeDefined checks that the variable is not nil. In case when a variable is nil, it panic.

func ShouldBeNotEmpty

func ShouldBeNotEmpty(object string, message string)

ShouldBeNotEmpty checks that the string is not empty and should contains not whitespace symbols.

Types

This section is empty.

Jump to

Keyboard shortcuts

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