MustBool requires parameter value to exist to bind to bool variable. Returns error when value does not exist
(sourceParam string, dest *bool)
| 920 | |
| 921 | // MustBool requires parameter value to exist to bind to bool variable. Returns error when value does not exist |
| 922 | func (b *ValueBinder) MustBool(sourceParam string, dest *bool) *ValueBinder { |
| 923 | return b.boolValue(sourceParam, dest, true) |
| 924 | } |
| 925 | |
| 926 | func (b *ValueBinder) boolValue(sourceParam string, dest *bool, valueMustExist bool) *ValueBinder { |
| 927 | if b.failFast && b.errors != nil { |