validator

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FiskValidator

func FiskValidator(validation string) fisk.OptionValidator

FiskValidator is a fisk.OptionValidator that compatible with Validator() on arguments and flags

func FloatValidator

func FloatValidator() []expr.Option

func IPv4Validator

func IPv4Validator() []expr.Option

func IPv6Validator

func IPv6Validator() []expr.Option

func IPvValidator

func IPvValidator() []expr.Option

func IntValidator

func IntValidator() []expr.Option

func ShellSafeValidator

func ShellSafeValidator() []expr.Option

func SurveyValidator

func SurveyValidator(validation string, required bool) func(any) error

SurveyValidator is a validator for github.com/AlecAivazis/survey

func Validate

func Validate(value any, validation string) (bool, error)

Validate validates value using the expr expression validation

Types

This section is empty.

Jump to

Keyboard shortcuts

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