strings

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRequired  = apperr.New("required")
	ErrMinLength = apperr.New("min_length")
	ErrMaxLength = apperr.New("max_length")
	ErrFormat    = apperr.New("invalid_format")
)

Functions

func Match

func Match(expr *regexp.Regexp) validation.Validator[string]

func Max

func Max(length int) validation.Validator[string]

func Min

func Min(length int) validation.Validator[string]

func Required

func Required(value string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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