Versions in this module Expand all Collapse all v0 v0.2.0 Oct 7, 2026 v0.1.0 Oct 7, 2026 Changes in this version + const MessageInvalidOption + const MessageRequiredField + const MultipartFormData + func IsMultipart(r *http.Request) bool + type BaseFormValues struct + func (f *BaseFormValues) GetError() string + func (f *BaseFormValues) HasError() bool + func (f *BaseFormValues) ID() string + func (f *BaseFormValues) IsValidated() bool + func (f *BaseFormValues) MarkValidated() + func (f *BaseFormValues) Prepare(id, token string) + func (f *BaseFormValues) SetElements(elements []Element) + func (f *BaseFormValues) SetError(err string) + func (f *BaseFormValues) Token() string + type Element interface + HasError func() bool + type ElementValueType interface + type File struct + func (e *File) GetError() string + func (e *File) GetValue() *FileHeader + func (e *File) HasError() bool + func (e *File) IsNotNull() bool + func (e *File) Process(r *http.Request, name string, isMultipart, isRequired bool) + func (e *File) SetError(err string) + type FileHeader struct + type FileMultiple struct + func (e *FileMultiple) GetError() string + func (e *FileMultiple) GetValue() []*FileHeader + func (e *FileMultiple) HasError() bool + func (e *FileMultiple) IsNotNull() bool + func (e *FileMultiple) Process(r *http.Request, name string, isMultipart, isRequired bool) + func (e *FileMultiple) SetError(err string) + type Input struct + func (e *Input[T]) GetError() string + func (e *Input[T]) GetFormValue() string + func (e *Input[T]) GetValue() T + func (e *Input[T]) HasError() bool + func (e *Input[T]) IsNotNull() bool + func (e *Input[T]) Process(r *http.Request, name string, isMultipart, isRequired bool) + func (e *Input[T]) SetError(err string) + func (e *Input[T]) SetValue(v T) + type InputMultiple struct + func (e *InputMultiple[T]) GetError() string + func (e *InputMultiple[T]) GetFormValue() string + func (e *InputMultiple[T]) GetValue() map[T]struct{} + func (e *InputMultiple[T]) HasError() bool + func (e *InputMultiple[T]) IsNotNull() bool + func (e *InputMultiple[T]) Process(r *http.Request, name string, isMultipart, isRequired bool) + func (e *InputMultiple[T]) SetError(err string) + func (e *InputMultiple[T]) SetValue(v map[T]struct{}) + type Select struct + func (e *Select[T]) GetError() string + func (e *Select[T]) GetOptions() []SelectOptionElement[T] + func (e *Select[T]) GetValue() T + func (e *Select[T]) HasError() bool + func (e *Select[T]) IsNotNull() bool + func (e *Select[T]) Process(r *http.Request, name string, isMultipart, isRequired bool) + func (e *Select[T]) SetError(err string) + func (e *Select[T]) SetOptions(o []SelectOptionElement[T]) + func (e *Select[T]) SetValue(v T) + type SelectMultiple struct + func (e *SelectMultiple[T]) GetError() string + func (e *SelectMultiple[T]) GetOptions() []SelectOptionElement[T] + func (e *SelectMultiple[T]) GetValue() map[T]struct{} + func (e *SelectMultiple[T]) HasError() bool + func (e *SelectMultiple[T]) IsNotNull() bool + func (e *SelectMultiple[T]) Process(r *http.Request, name string, isMultipart, isRequired bool) + func (e *SelectMultiple[T]) SetError(err string) + func (e *SelectMultiple[T]) SetOptions(o []SelectOptionElement[T]) + func (e *SelectMultiple[T]) SetValue(v map[T]struct{}) + type SelectOption struct + Disabled bool + Label string + Value T + func (o SelectOption[T]) Allows(v T) bool + func (o SelectOption[T]) WriteHtml(w io.Writer, isSelected func(v T) bool) error + type SelectOptionElement interface + Allows func(v T) bool + WriteHtml func(w io.Writer, isSelected func(v T) bool) error + type SelectOptionGroup struct + Disabled bool + Label string + Options []SelectOptionElement[T] + func (o SelectOptionGroup[T]) Allows(v T) bool + func (o SelectOptionGroup[T]) WriteHtml(w io.Writer, isSelected func(v T) bool) error + type Textarea struct + func (e *Textarea) GetError() string + func (e *Textarea) GetValue() string + func (e *Textarea) HasError() bool + func (e *Textarea) IsNotNull() bool + func (e *Textarea) Process(r *http.Request, name string, isMultipart, isRequired bool) + func (e *Textarea) SetError(err string) + func (e *Textarea) SetValue(v string)