(value string, bitSize int, field reflect.Value)
| 450 | } |
| 451 | |
| 452 | func 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 | |
| 463 | func setUintField(value string, bitSize int, field reflect.Value) error { |
| 464 | if value == "" { |
no outgoing calls
no test coverage detected
searching dependent graphs…