I have "FormError" struct. I pass this struct to my template. So how to access InputError struct field value with specific key in the template?
type InputError struct {
Val string
Has bool
}
type FormError struct {
Errs map[string]InputError
}
This doesn't work.
<input name="Name" type="text" value="{{index .Errs.Val `Name`}}">