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

Method uintValue

binder.go:748–762  ·  view source on GitHub ↗
(sourceParam string, dest any, bitSize int, valueMustExist bool)

Source from the content-addressed store, hash-verified

746}
747
748func (b *ValueBinder) uintValue(sourceParam string, dest any, bitSize int, valueMustExist bool) *ValueBinder {
749 if b.failFast && b.errors != nil {
750 return b
751 }
752
753 value := b.ValueFunc(sourceParam)
754 if value == "" {
755 if valueMustExist {
756 b.setError(b.ErrorFunc(sourceParam, []string{}, "required field value is empty", nil))
757 }
758 return b
759 }
760
761 return b.uint(sourceParam, value, dest, bitSize)
762}
763
764func (b *ValueBinder) uint(sourceParam string, value string, dest any, bitSize int) *ValueBinder {
765 n, err := strconv.ParseUint(value, 10, bitSize)

Callers 12

Uint64Method · 0.95
MustUint64Method · 0.95
Uint32Method · 0.95
MustUint32Method · 0.95
Uint16Method · 0.95
MustUint16Method · 0.95
Uint8Method · 0.95
MustUint8Method · 0.95
ByteMethod · 0.95
MustByteMethod · 0.95
UintMethod · 0.95
MustUintMethod · 0.95

Calls 2

setErrorMethod · 0.95
uintMethod · 0.95

Tested by

no test coverage detected