MCPcopy
hub / github.com/labstack/echo / BindErrors

Method BindErrors

binder.go:217–224  ·  view source on GitHub ↗

BindErrors returns all bind errors and resets/empties binder errors for further calls

()

Source from the content-addressed store, hash-verified

215
216// BindErrors returns all bind errors and resets/empties binder errors for further calls
217func (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.
227func (b *ValueBinder) CustomFunc(sourceParam string, customFunc func(values []string) []error) *ValueBinder {

Calls

no outgoing calls