(sourceParam string, value string, dest *bool)
| 939 | } |
| 940 | |
| 941 | func (b *ValueBinder) bool(sourceParam string, value string, dest *bool) *ValueBinder { |
| 942 | n, err := strconv.ParseBool(value) |
| 943 | if err != nil { |
| 944 | b.setError(b.ErrorFunc(sourceParam, []string{value}, "failed to bind field value to bool", err)) |
| 945 | return b |
| 946 | } |
| 947 | |
| 948 | *dest = n |
| 949 | return b |
| 950 | } |
| 951 | |
| 952 | func (b *ValueBinder) boolsValue(sourceParam string, dest *[]bool, valueMustExist bool) *ValueBinder { |
| 953 | if b.failFast && b.errors != nil { |