k0kubun/pp

ignore private fields in a struct in pretty print golang

alok87 opened this issue · 1 comments

type Obj struct {
  priv someotherstruct
  Pub string
}
var obj Obj
pp.Print(obj)

It prints at present all the priv also. How to ignore printing private parts of struct