You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stringer turns numbers into names. In your example, One and Fourteen have the same value, Fourteen.String() == "One". There would be no way to disambiguate.
Try changing Fourteen to iota+2 and you'll see stringer is working fine.
Given input:
stringer generates strings only for the first group:
The text was updated successfully, but these errors were encountered: