Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TemplateFunctions = template.FuncMap{
"in": in,
}
Functions ¶
func CreateForm ¶
func CreateForm(j json.RawMessage, templates []string) (string, error)
CreateForm generate an HTML form
Types ¶
type Field ¶
type Field struct { Name string `json:"name,omitempty"` Label string `json:"label,omitempty"` Class string `json:"class,omitempty"` Type string `json:"type,omitempty"` Placeholder string `json:"placeholder,omitempty"` Value string `json:"value,omitempty"` Metadata Metadata `json:"metadata,omitempty"` }
Field properties
Click to show internal directories.
Click to hide internal directories.