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

Function setUintField

bind.go:463–472  ·  view source on GitHub ↗
(value string, bitSize int, field reflect.Value)

Source from the content-addressed store, hash-verified

461}
462
463func setUintField(value string, bitSize int, field reflect.Value) error {
464 if value == "" {
465 value = "0"
466 }
467 uintVal, err := strconv.ParseUint(value, 10, bitSize)
468 if err == nil {
469 field.SetUint(uintVal)
470 }
471 return err
472}
473
474func setBoolField(value string, field reflect.Value) error {
475 if value == "" {

Callers 1

setWithProperTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…