(value string, bitSize int, field reflect.Value)
| 461 | } |
| 462 | |
| 463 | func 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 | |
| 474 | func setBoolField(value string, field reflect.Value) error { |
| 475 | if value == "" { |
no outgoing calls
no test coverage detected
searching dependent graphs…