validation

package
v1.34.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringValidator

type StringValidator func(string) error

StringValidator is a function that returns an error if the input is invalid.

func ComposeValidators

func ComposeValidators(validators ...StringValidator) StringValidator

func NotBlankValidator

func NotBlankValidator(message string) StringValidator

func RegexValidator

func RegexValidator(regex *regexp.Regexp, message string) StringValidator

Jump to

Keyboard shortcuts

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