SetWithMap sets multiple form fields from a map, overriding previously set values.
(m map[string]string)
| 910 | |
| 911 | // SetWithMap sets multiple form fields from a map, overriding previously set values. |
| 912 | func (f *FormData) SetWithMap(m map[string]string) { |
| 913 | for k, v := range m { |
| 914 | f.Set(k, v) |
| 915 | } |
| 916 | } |
| 917 | |
| 918 | // SetWithStruct sets multiple form fields from a struct. |
| 919 | // Nested structs are not currently supported. |