If it is something like weekdays (very few options), I don't see any issues 
with it. Stringer is great when as you go along using your app, you may 
need to add more values over time.

using iota and stringer is great when your list may be 15 or more items, 
and keeping them updated becomes a chore you would like to avoid.

Regards,

Diego


On Sunday, October 15, 2017 at 8:12:14 PM UTC-4, Inanc Gumus wrote:
>
> Yep, I know that one, I’m asking about the convention, idioms and the 
> performance-wise.
>
> Inanc Gumus
>
> Marvin Stenger <marvin.s...@gmail.com <javascript:>> şunları yazdı (16 
> Eki 2017 02:45):
>
> You could also use this:
> https://godoc.org/golang.org/x/tools/cmd/stringer
>
> -- 
> You received this message because you are subscribed to a topic in the 
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/golang-nuts/mbHdiXkb7iU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> golang-nuts...@googlegroups.com <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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 golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to