Hello,
In my unit tests when expected is not the actual result, I like display
actual value with Go-syntax. For example:
if got != expected {
t.Errorf(" %#v", got) // []string{"blah','blah"}
}
But it want to know if there is elegant way to display as formatted on
multi-lines (a kind of indented json but with gofmt rules)?
Thanks in advance,
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/a20949fd-dcaf-4b7a-95d1-542ce9c3e1a3n%40googlegroups.com.