Slide 28
Slide 28 text
Pretty print with go-spew
// to illustrate the points.
type ctfileParseState struct {
header *ctfileHeader
bar string
}
ctfh := ctfileHeader{1297035375, 82, 33060, 4, "test"}
c := ctfileParseState{&ctfh, "bar"}
fmt.Printf("%+v\n", c)
{header:0xf84003f480 bar:bar}
spew.Printf("%+v\n", c)
{header:<*>(0xf84003f480){beacon:1297035375 numShas:82 mode:
33060 typ:4 filename:test} bar:bar}
https://github.com/davecgh/go-spew