BindErrors returns all bind errors and resets/empties binder errors for further calls
()
| 215 | |
| 216 | // BindErrors returns all bind errors and resets/empties binder errors for further calls |
| 217 | func (b *ValueBinder) BindErrors() []error { |
| 218 | if b.errors == nil { |
| 219 | return nil |
| 220 | } |
| 221 | errors := b.errors |
| 222 | b.errors = nil // reset errors so next chain will start from zero |
| 223 | return errors |
| 224 | } |
| 225 | |
| 226 | // CustomFunc binds parameter values with Func. Func is called only when parameter values exist. |
| 227 | func (b *ValueBinder) CustomFunc(sourceParam string, customFunc func(values []string) []error) *ValueBinder { |
no outgoing calls