Is there something like Ruby's awesome_print
in Go?
For example in Ruby you could write:
require 'ap'
x = {a:1,b:2} // also works for class
ap x
the output would be:
{
"a" => 1,
"b" => 2
}
closest thing that I could found is Printf("%#v", x)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…