printVal prints the given value with the specified label.
(l string, v interface{})
| 574 | |
| 575 | // printVal prints the given value with the specified label. |
| 576 | func printVal(l string, v interface{}) { |
| 577 | switch f := v.(type) { |
| 578 | case uint, uint64: |
| 579 | printFmt(l, "%d", f) |
| 580 | case string: |
| 581 | printFmt(l, "%s", f) |
| 582 | default: |
| 583 | printFmt(l, "%v", f) |
| 584 | } |
| 585 | } |
no test coverage detected