MCPcopy Index your code
hub / github.com/labstack/echo / MustCustomFunc

Method MustCustomFunc

binder.go:232–234  ·  view source on GitHub ↗

MustCustomFunc requires parameter values to exist to bind with Func. Returns error when value does not exist.

(sourceParam string, customFunc func(values []string) []error)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

customFuncMethod · 0.95

Tested by 1