Create HTML Forms Automatically
JSON metadata
{
"method": "POST",
"action": "/addr",
"fields": [
{
"name": "address",
"label": "Address",
"class": "form-control",
"type": "text",
"placeholder": "Sunset Blvd, 38"
}
]
}
cat examples/example.json| go run cmd/fa/main.go -t ./templates
go run cmd/fa/main.go -f examples/example.json -t ./templates