MCPcopy
hub / github.com/adonovan/gopl.io / Display

Function Display

ch12/display/display.go:17–20  ·  view source on GitHub ↗

!+Display

(name string, x interface{})

Source from the content-addressed store, hash-verified

15//!+Display
16
17func Display(name string, x interface{}) {
18 fmt.Printf("Display %s (%T):\n", name, x)
19 display(name, reflect.ValueOf(x))
20}
21
22//!-Display
23

Callers 10

Example_exprFunction · 0.85
Example_sliceFunction · 0.85
Example_nilInterfaceFunction · 0.85
Example_ptrToInterfaceFunction · 0.85
Example_structFunction · 0.85
Example_interfaceFunction · 0.85
Example_ptrToInterface2Function · 0.85
Example_arrayFunction · 0.85
Example_movieFunction · 0.85
TestFunction · 0.85

Calls 1

displayFunction · 0.85

Tested by 10

Example_exprFunction · 0.68
Example_sliceFunction · 0.68
Example_nilInterfaceFunction · 0.68
Example_ptrToInterfaceFunction · 0.68
Example_structFunction · 0.68
Example_interfaceFunction · 0.68
Example_ptrToInterface2Function · 0.68
Example_arrayFunction · 0.68
Example_movieFunction · 0.68
TestFunction · 0.68