String binds a form field to a string variable. var foo string ctx.FormData().String("foo", &foo, "bar")
(key string, target *string, defaultValue string)
| 70 | // |
| 71 | // ctx.FormData().String("foo", &foo, "bar") |
| 72 | func (form *FormData) String(key string, target *string, defaultValue string) *FormData { |
| 73 | return form.mustValue(key, target, defaultValue) |
| 74 | } |
| 75 | |
| 76 | // MandatoryString binds a form field to a string variable. It populates |
| 77 | // an error if the value is empty or the "key" does not exist. |