(sourceParam string, dest any, valueMustExist bool)
| 1041 | } |
| 1042 | |
| 1043 | func (b *ValueBinder) floatsValue(sourceParam string, dest any, valueMustExist bool) *ValueBinder { |
| 1044 | if b.failFast && b.errors != nil { |
| 1045 | return b |
| 1046 | } |
| 1047 | |
| 1048 | values := b.ValuesFunc(sourceParam) |
| 1049 | if len(values) == 0 { |
| 1050 | if valueMustExist { |
| 1051 | b.setError(b.ErrorFunc(sourceParam, []string{}, "required field value is empty", nil)) |
| 1052 | } |
| 1053 | return b |
| 1054 | } |
| 1055 | return b.floats(sourceParam, values, dest) |
| 1056 | } |
| 1057 | |
| 1058 | func (b *ValueBinder) floats(sourceParam string, values []string, dest any) *ValueBinder { |
| 1059 | switch d := dest.(type) { |
no test coverage detected