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

Method MustInt

binder.go:516–518  ·  view source on GitHub ↗

MustInt requires parameter value to exist to bind to int variable. Returns error when value does not exist

(sourceParam string, dest *int)

Source from the content-addressed store, hash-verified

514
515// MustInt requires parameter value to exist to bind to int variable. Returns error when value does not exist
516func (b *ValueBinder) MustInt(sourceParam string, dest *int) *ValueBinder {
517 return b.intValue(sourceParam, dest, 0, true)
518}
519
520func (b *ValueBinder) intValue(sourceParam string, dest any, bitSize int, valueMustExist bool) *ValueBinder {
521 if b.failFast && b.errors != nil {

Calls 1

intValueMethod · 0.95