validator

package
v0.0.0-...-d625e3b Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: AGPL-3.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 FieldDef

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

func Field

func Field(name string, rules ...rule.Rule) FieldDef

type Validator

type Validator interface {
	Validate(values map[string]string) map[string][]string
	ValidateForm(r *http.Request) map[string][]string
}

func New

func New(fields ...FieldDef) Validator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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