Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct {
Name string `json:"name"`
Required bool `json:"required"`
Type string `json:"type"`
Options string `json:"options"`
Default string `json:"default"`
Help string `json:"help"`
}
func Parse ¶
Parse reflects v's exported fields into a list of form-field descriptors, reading the json/required/type/options/default/help struct tags. v must be a struct or a non-nil pointer to one; anything else (including nil) yields no items instead of panicking. A field tagged json:"-" is skipped, matching encoding/json's convention for excluding a field.
Click to show internal directories.
Click to hide internal directories.