Thx. Btw, I don't know about any inlining help from the Go compiler when
you use iota or a string inside constants.

On Mon, Oct 16, 2017 at 6:16 PM, Diego Medina <fmpwiz...@gmail.com> wrote:

> 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> ş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/to
>> pic/golang-nuts/mbHdiXkb7iU/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> golang-nuts...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*I've been a programmer since 1993 and an online teacher and mentor since
2016. Now, I'm working on full-time from my homeoffice to teach you Go.*

 @inancgumus
<http://twitter.us16.list-manage.com/track/click?u=343b470c3aef09e6732c9acdf&id=da5bb3aa21&e=9c7f178934>
[image: 📚] Learn Go Programming Blog
<http://twitter.us16.list-manage.com/track/click?u=343b470c3aef09e6732c9acdf&id=f4c8a1ae66&e=9c7f178934>

-- 
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