forms

package
v0.0.0-...-e5d5354 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Form

type Form struct {
	Values url.Values
	Errors errors
}

func New

func New(values url.Values) *Form

func (*Form) Clear

func (f *Form) Clear()

func (*Form) Email

func (f *Form) Email(field string)

func (*Form) MaxLength

func (f *Form) MaxLength(field string, length int)

func (*Form) MaxValue

func (f *Form) MaxValue(field string, maxValue int)

func (*Form) MinLength

func (f *Form) MinLength(field string, length int)

func (*Form) MinValue

func (f *Form) MinValue(field string, minValue int)

func (*Form) PasswordsMatch

func (f *Form) PasswordsMatch(field, repeatedField string)

func (*Form) Required

func (f *Form) Required(fields ...string)

func (*Form) Valid

func (f *Form) Valid() bool

Jump to

Keyboard shortcuts

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