MCPcopy
hub / github.com/google/seesaw / printVal

Function printVal

cli/show.go:576–585  ·  view source on GitHub ↗

printVal prints the given value with the specified label.

(l string, v interface{})

Source from the content-addressed store, hash-verified

574
575// printVal prints the given value with the specified label.
576func 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}

Callers 7

showBGPNeighborsFunction · 0.85
showVLANsFunction · 0.85
showHAStatusFunction · 0.85
configStatusFunction · 0.85
showNodeFunction · 0.85
showDestinationFunction · 0.85
printVserverFunction · 0.85

Calls 1

printFmtFunction · 0.85

Tested by

no test coverage detected