(sourceParam string, dest any, valueMustExist bool)
| 788 | } |
| 789 | |
| 790 | func (b *ValueBinder) uintsValue(sourceParam string, dest any, valueMustExist bool) *ValueBinder { |
| 791 | if b.failFast && b.errors != nil { |
| 792 | return b |
| 793 | } |
| 794 | |
| 795 | values := b.ValuesFunc(sourceParam) |
| 796 | if len(values) == 0 { |
| 797 | if valueMustExist { |
| 798 | b.setError(b.ErrorFunc(sourceParam, values, "required field value is empty", nil)) |
| 799 | } |
| 800 | return b |
| 801 | } |
| 802 | return b.uints(sourceParam, values, dest) |
| 803 | } |
| 804 | |
| 805 | func (b *ValueBinder) uints(sourceParam string, values []string, dest any) *ValueBinder { |
| 806 | switch d := dest.(type) { |
no test coverage detected