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

Function Example_slice

ch12/display/display_test.go:36–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34}
35
36func Example_slice() {
37 Display("slice", []*int{new(int), nil})
38 // Output:
39 // Display slice ([]*int):
40 // (*slice[0]) = 0
41 // slice[1] = nil
42}
43
44func Example_nilInterface() {
45 var w io.Writer

Callers

nothing calls this directly

Calls 1

DisplayFunction · 0.85

Tested by

no test coverage detected