svalid

package
v0.0.0-...-1a09719 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigErrMessages

func ConfigErrMessages(msgs *ErrorMessages)

ConfigErrMessages configure the error messages for validation.

func Email

func Email() fyne.StringValidator

Email defines email validator.

func MinLength

func MinLength(min int) fyne.StringValidator

MinLength defines min length validator.

func NewGroup

func NewGroup(validators ...fyne.StringValidator) fyne.StringValidator

NewGroup creates a new validator as a result of combined validators.

func NotEmpty

func NotEmpty() fyne.StringValidator

NotEmpty defines not empty validator.

Types

type ErrorMessages

type ErrorMessages struct {
	NotEmpty  string
	Email     string
	MinLength string
}

ErrorMessages defines all the error messages.

Jump to

Keyboard shortcuts

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