Aside from the correction, however, I did not understand why the method is 
called 2 times.

Il giorno venerdì 30 giugno 2017 12:51:20 UTC+2, Franco Marchesini ha 
scritto:
>
> Yes, after Dave's answer I realized the mistake.
> This is a solution.
>
> Il giorno venerdì 30 giugno 2017 11:42:45 UTC+2, Sebastien Binet ha 
> scritto:
>>
>>
>>
>> On Fri, Jun 30, 2017 at 11:38 AM, Franco Marchesini <
>> franco.m...@gmail.com> wrote:
>>
>>> 1.
>>>
>>> Because with 2 there is a problem. The method is called twice and is 
>>> inefficient.
>>>
>>
>> what about checking your errors, then ? :)
>>  https://play.golang.org/p/K8j8D0AZe9
>>
>> -s
>>
>>
>>> Il giorno venerdì 30 giugno 2017 11:31:31 UTC+2, Jan Mercl ha scritto:
>>>>
>>>> On Fri, Jun 30, 2017 at 9:48 AM Franco Marchesini <
>>>> franco.m...@gmail.com> wrote:
>>>>
>>>> > Why after the execution the k value is 2?
>>>>
>>>> What value of k do you expect instead and why? (
>>>> https://play.golang.org/p/wdWo3fahAS)
>>>>
>>>> -- 
>>>>
>>>> -j
>>>>
>>> -- 
>>> 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...@googlegroups.com.
>>> 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