assert

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DurationNotEmpty

func DurationNotEmpty(value time.Duration) error

DurationNotEmpty checks if given duration is not empty

func NotNil

func NotNil(values ...any) error

NotNil checks given value if it is not nil

func StringLength

func StringLength(value string, minLength int, maxLength int, allowedValues *[]string) error

StringLength checks a string for the given min and max length

func StringNotEmpty

func StringNotEmpty(value string) error

StringNotEmpty checks if given string is not empty

func ValidAPIEndpoint

func ValidAPIEndpoint(value string) error

ValidAPIEndpoint check if given string is a valid API endpoint

func ValidAPISecret

func ValidAPISecret(value string) error

ValidAPISecret checks if given string isa valid API secret

func ValidProjectID

func ValidProjectID(value string) error

ValidProjectID check if given string is a valid project ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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