TrySet tries to set a value by request's form source (like map[string][]string)
(value reflect.Value, field reflect.StructField, tagValue string, opt setOptions)
| 73 | |
| 74 | // TrySet tries to set a value by request's form source (like map[string][]string) |
| 75 | func (form formSource) TrySet(value reflect.Value, field reflect.StructField, tagValue string, opt setOptions) (isSet bool, err error) { |
| 76 | return setByForm(value, field, form, tagValue, opt) |
| 77 | } |
| 78 | |
| 79 | func mappingByPtr(ptr any, setter setter, tag string) error { |
| 80 | _, err := mapping(reflect.ValueOf(ptr), emptyField, setter, tag) |
nothing calls this directly
no test coverage detected