(sourceParam string, dest any, valueMustExist bool)
| 560 | } |
| 561 | |
| 562 | func (b *ValueBinder) intsValue(sourceParam string, dest any, valueMustExist bool) *ValueBinder { |
| 563 | if b.failFast && b.errors != nil { |
| 564 | return b |
| 565 | } |
| 566 | |
| 567 | values := b.ValuesFunc(sourceParam) |
| 568 | if len(values) == 0 { |
| 569 | if valueMustExist { |
| 570 | b.setError(b.ErrorFunc(sourceParam, values, "required field value is empty", nil)) |
| 571 | } |
| 572 | return b |
| 573 | } |
| 574 | return b.ints(sourceParam, values, dest) |
| 575 | } |
| 576 | |
| 577 | func (b *ValueBinder) ints(sourceParam string, values []string, dest any) *ValueBinder { |
| 578 | switch d := dest.(type) { |
no test coverage detected