davecgh / go-spew

Implements a deep pretty printer for Go data structures to aid in debugging

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for trailing commas on last element

ernesto-jimenez opened this issue · comments

Hi @davecgh,

Is it possible to setup spew to print a trailing comma for all elements in a map/array?

It would help with stretchr/testify#288

Also, is it possible to do spew.Sprintf to print spew with a multi-line output and without pointers? to address stretchr/testify#317

The second one is now possible thanks to PR #56 from @atombender which I just merged to master. The first one is not currently possible (though I am not opposed to a config option for that either).