column

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowedValidator

type AllowedValidator []string

func (AllowedValidator) Name

func (d AllowedValidator) Name() string

func (AllowedValidator) Validate

func (d AllowedValidator) Validate(column string) error

type RegexValidator

type RegexValidator struct {
	// contains filtered or unexported fields
}

func NewRegexValidator

func NewRegexValidator(regex string) (*RegexValidator, error)

func (*RegexValidator) Name

func (d *RegexValidator) Name() string

func (*RegexValidator) Validate

func (d *RegexValidator) Validate(column string) error

type Validator

type Validator interface {
	Validate(string) error
	Name() string
}

type Validators

type Validators []Validator

func (Validators) Iter

func (c Validators) Iter(column string) iter.Seq2[string, error]

Jump to

Keyboard shortcuts

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