Documentation ¶
Index ¶
- func FieldIsOptional(name string, value string) error
- func FieldIsRequired(name string, value string) error
- func InputCanBeBool(name string, value string) error
- func InputIsInteger(name string, value string) error
- func YesOrNo(v string) (string, error)
- type Field
- type FieldValidator
- type Form
- type Report
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldIsOptional ¶
func FieldIsRequired ¶
func InputCanBeBool ¶
func InputIsInteger ¶
Types ¶
type Field ¶
type Field struct { Label string Name string Value interface{} Validator FieldValidator }
type FieldValidator ¶
type Form ¶
type Form struct {
Fields []*Field
}
func (*Form) BuildContent ¶
func (*Form) ConvertFieldValueToBool ¶
func (*Form) ConvertFieldValueToInteger ¶
Click to show internal directories.
Click to hide internal directories.