Documentation
¶
Index ¶
- type BaseForm
- func (b *BaseForm) AddField(name string, field form.Field) error
- func (b *BaseForm) GetField(name string) (form.Field, bool)
- func (b *BaseForm) GetFields() []form.Field
- func (b *BaseForm) GetValidationFunctions() []form.ValidationFunc
- func (b *BaseForm) RegisterInitialValues(values map[string]interface{}) error
- func (b *BaseForm) RegisterValidationFunctions(validationFuncs ...form.ValidationFunc)
- func (b *BaseForm) Save(values map[string]form.HTMLType) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseForm ¶
type BaseForm struct { Fields []form.Field ValidationFuncs []form.ValidationFunc }
func (*BaseForm) GetValidationFunctions ¶
func (b *BaseForm) GetValidationFunctions() []form.ValidationFunc
func (*BaseForm) RegisterInitialValues ¶
RegisterInitialValues TODO make it return an error if there are values in the map that do not match any field
func (*BaseForm) RegisterValidationFunctions ¶
func (b *BaseForm) RegisterValidationFunctions(validationFuncs ...form.ValidationFunc)
Click to show internal directories.
Click to hide internal directories.