MustCustomFunc requires parameter values to exist to bind with Func. Returns error when value does not exist.
(sourceParam string, customFunc func(values []string) []error)
| 230 | |
| 231 | // MustCustomFunc requires parameter values to exist to bind with Func. Returns error when value does not exist. |
| 232 | func (b *ValueBinder) MustCustomFunc(sourceParam string, customFunc func(values []string) []error) *ValueBinder { |
| 233 | return b.customFunc(sourceParam, customFunc, true) |
| 234 | } |
| 235 | |
| 236 | func (b *ValueBinder) customFunc(sourceParam string, customFunc func(values []string) []error, valueMustExist bool) *ValueBinder { |
| 237 | if b.failFast && b.errors != nil { |