Support for trailing commas on last element
ernesto-jimenez opened this issue · comments
Ernesto Jiménez commented
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
Dave Collins commented
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).
Ernesto Jiménez commented
Thanks @atombender! :)