validation

package
v0.0.0-...-4b264f4 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrCheckItems

func ArrCheckItems[T shared.BPMNStruct](name string, inputField []T) (errors []error)

func ArrGTEZero

func ArrGTEZero[T constraints.Float | constraints.Integer](structName, fieldName string, array []T) (err []error)

func ArrNonzero

func ArrNonzero[T any](structName, fieldName string, array []T) (err []error)

func ArrOneOrMore

func ArrOneOrMore[T any](structName, fieldName string, array []T) (err error)

func ArrZeroOne

func ArrZeroOne[T any](structName, fieldName string, array []T) (err error)

func ArraysMaxCount

func ArraysMaxCount[T any](structName, fieldName string, maxCount int, arrays ...[]T) (err error)

func FilterErrors

func FilterErrors(checks []error) (errors []error)

func NewEnumValidationError

func NewEnumValidationError[T any](structName, field string, validValues []T, got T) (err error)

func ValGTEZero

func ValGTEZero[T constraints.Float | constraints.Integer](structName, fieldName string, value T) (err error)

func ValNonzero

func ValNonzero[T any](structName, fieldName string, value T) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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