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

Function setBoolField

bind.go:474–483  ·  view source on GitHub ↗
(value string, field reflect.Value)

Source from the content-addressed store, hash-verified

472}
473
474func setBoolField(value string, field reflect.Value) error {
475 if value == "" {
476 value = "false"
477 }
478 boolVal, err := strconv.ParseBool(value)
479 if err == nil {
480 field.SetBool(boolVal)
481 }
482 return err
483}
484
485func setFloatField(value string, bitSize int, field reflect.Value) error {
486 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…