Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
36
func
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
44
func
Example_nilInterface() {
45
var
w io.Writer
Callers
nothing calls this directly
Calls
1
Display
Function · 0.85
Tested by
no test coverage detected