Open nkbai opened 6 years ago
I hope that fmt.sprintf and spew.dump work together in my project how to ? thanks
When you execute spew.Sdump(this)
in the A.String
method, spew runs, sees that the type A
implements the fmt.Stringer
interface, and calls String
, which in turn calls spew again. So it recurses forever.
You shouldn’t call spew in a String
method.
thanks ,i have removed spew.sdump from stringer method