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

Method MustUint

binder.go:744–746  ·  view source on GitHub ↗

MustUint requires parameter value to exist to bind to uint variable. Returns error when value does not exist

(sourceParam string, dest *uint)

Source from the content-addressed store, hash-verified

742
743// MustUint requires parameter value to exist to bind to uint variable. Returns error when value does not exist
744func (b *ValueBinder) MustUint(sourceParam string, dest *uint) *ValueBinder {
745 return b.uintValue(sourceParam, dest, 0, true)
746}
747
748func (b *ValueBinder) uintValue(sourceParam string, dest any, bitSize int, valueMustExist bool) *ValueBinder {
749 if b.failFast && b.errors != nil {

Callers 1

Calls 1

uintValueMethod · 0.95

Tested by 1