(sourceParam string, values []string, dest *[]bool)
| 965 | } |
| 966 | |
| 967 | func (b *ValueBinder) bools(sourceParam string, values []string, dest *[]bool) *ValueBinder { |
| 968 | tmp := make([]bool, len(values)) |
| 969 | for i, v := range values { |
| 970 | b.bool(sourceParam, v, &tmp[i]) |
| 971 | if b.failFast && b.errors != nil { |
| 972 | return b |
| 973 | } |
| 974 | } |
| 975 | if b.errors == nil { |
| 976 | *dest = tmp |
| 977 | } |
| 978 | return b |
| 979 | } |
| 980 | |
| 981 | // Bools binds parameter values to slice of bool variables |
| 982 | func (b *ValueBinder) Bools(sourceParam string, dest *[]bool) *ValueBinder { |
no test coverage detected