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

Function setIntField

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

Source from the content-addressed store, hash-verified

450}
451
452func setIntField(value string, bitSize int, field reflect.Value) error {
453 if value == "" {
454 value = "0"
455 }
456 intVal, err := strconv.ParseInt(value, 10, bitSize)
457 if err == nil {
458 field.SetInt(intVal)
459 }
460 return err
461}
462
463func setUintField(value string, bitSize int, field reflect.Value) error {
464 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…