Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldTemplate ¶
type FormTemplate ¶
type FormTemplate struct {
CustomValidate func(*Form)
// contains filtered or unexported fields
}
func NewFormTemplate ¶
func NewFormTemplate() (f *FormTemplate)
func (*FormTemplate) AddField ¶
func (f *FormTemplate) AddField(fieldTemplate FieldTemplate)
func (*FormTemplate) New ¶
func (f *FormTemplate) New() (s *Form)
func (*FormTemplate) Validate ¶
func (f *FormTemplate) Validate(s *Form)
type IntTemplate ¶
func (*IntTemplate) GetName ¶
func (f *IntTemplate) GetName() string
func (*IntTemplate) Parse ¶
func (f *IntTemplate) Parse(unparsed string) (interface{}, error)
func (*IntTemplate) Validate ¶
func (f *IntTemplate) Validate(value interface{}) error
type StringTemplate ¶
func (*StringTemplate) GetName ¶
func (f *StringTemplate) GetName() string
func (*StringTemplate) Parse ¶
func (f *StringTemplate) Parse(unparsed string) (interface{}, error)
func (*StringTemplate) Validate ¶
func (f *StringTemplate) Validate(value interface{}) (err error)
type TooLongError ¶
type TooLongError struct {
Maximum int
}
func (TooLongError) Error ¶
func (e TooLongError) Error() string
type TooShortError ¶
type TooShortError struct {
Minimum int
}
func (TooShortError) Error ¶
func (e TooShortError) Error() string
Click to show internal directories.
Click to hide internal directories.