Err: json.MarshalIndent(): json: unsupported type:util.TypeFn
because there could be fields which are not supported by json. In my case, it is ok to just skip that value, and show rest of the content, or say size, type of fields present.
so my intention is easy debugging, just to see the content during debugging and not cared about performance.
Try fmt.Printf("%#v\n", ...)
There is also a pretty printer called go-spew. I haven't used it personally, but others recommend it highly.
Thanks
Dave