Consider the example given in the README:
type Circular struct {
Self *Circular
}
selfref := Circular{}
selfref.Self = &selfref
This produces the following output:
main.Circular{
Self: &main.Circular{// p0
Self: p0,
},
}
While the expected output is:
main.Circular{// p0
Self: p0,
}