Is there a Go Language equivalent to Perls' Dumper() method in Data::Dumper?

I've looked at the very similarly titled http://j.mp/ONYdGe post, regarding a C equivalent to Data::Dumper::Dumper(); How ever, I have a similar question, but for the Go language. I'm a Perl Zealot by trade, and am a progamming hobbyist, and make use of Data::Dumper and similar offspring literally hundreds of times a day. I've taken up learning Go, becuase it looks like a fun and interesting language, something that will get me out of the Perl rut I'm in, while opening my eyes to new ways of doing stuffz... One of the things I really want is something like:fmt.Println(dump.Dumper(decoded_json))too see the resulting data structure, like Data::Dumper would turn the JSON into an Array of Hashes. Seeing this in Go, will help me to understand how to construct and work with the data. Something like this would be considered a major lightbulb moment in my learning of Go.Contrary to the statements made in the C counterpart post, i believe we can write this, and since I'll be passing Dumper to Println, after compilation what ever JSON string or XML page i pass in and decode. I should be able to see the result of the decoding, in a Dumper lik state... So, does any more know of anything like this that exists? or maybe some pointers to getting something like this done? Thanks, I should probably admit, I'm 9 days into looking at Go.
 
Back
Top