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

Method uintsValue

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

Source from the content-addressed store, hash-verified

788}
789
790func (b *ValueBinder) uintsValue(sourceParam string, dest any, valueMustExist bool) *ValueBinder {
791 if b.failFast && b.errors != nil {
792 return b
793 }
794
795 values := b.ValuesFunc(sourceParam)
796 if len(values) == 0 {
797 if valueMustExist {
798 b.setError(b.ErrorFunc(sourceParam, values, "required field value is empty", nil))
799 }
800 return b
801 }
802 return b.uints(sourceParam, values, dest)
803}
804
805func (b *ValueBinder) uints(sourceParam string, values []string, dest any) *ValueBinder {
806 switch d := dest.(type) {

Callers 10

Uint64sMethod · 0.95
MustUint64sMethod · 0.95
Uint32sMethod · 0.95
MustUint32sMethod · 0.95
Uint16sMethod · 0.95
MustUint16sMethod · 0.95
Uint8sMethod · 0.95
MustUint8sMethod · 0.95
UintsMethod · 0.95
MustUintsMethod · 0.95

Calls 2

setErrorMethod · 0.95
uintsMethod · 0.95

Tested by

no test coverage detected