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

Method intsValue

binder.go:562–575  ·  view source on GitHub ↗
(sourceParam string, dest any, valueMustExist bool)

Source from the content-addressed store, hash-verified

560}
561
562func (b *ValueBinder) intsValue(sourceParam string, dest any, valueMustExist bool) *ValueBinder {
563 if b.failFast && b.errors != nil {
564 return b
565 }
566
567 values := b.ValuesFunc(sourceParam)
568 if len(values) == 0 {
569 if valueMustExist {
570 b.setError(b.ErrorFunc(sourceParam, values, "required field value is empty", nil))
571 }
572 return b
573 }
574 return b.ints(sourceParam, values, dest)
575}
576
577func (b *ValueBinder) ints(sourceParam string, values []string, dest any) *ValueBinder {
578 switch d := dest.(type) {

Callers 10

Int64sMethod · 0.95
MustInt64sMethod · 0.95
Int32sMethod · 0.95
MustInt32sMethod · 0.95
Int16sMethod · 0.95
MustInt16sMethod · 0.95
Int8sMethod · 0.95
MustInt8sMethod · 0.95
IntsMethod · 0.95
MustIntsMethod · 0.95

Calls 2

setErrorMethod · 0.95
intsMethod · 0.95

Tested by

no test coverage detected