I'm sorry, I do not know how it happened
this is original code: https://play.golang.org/p/tUMlHWHfJE
Allowed to amend the sections of code that are marked commentary «// redact»

пятница, 2 сентября 2016 г., 21:25:44 UTC+3 пользователь dja...@gmail.com 
написал:
>
> working examle:
> https://play.golang.org/p/KLZdle7R47
>
> On Friday, September 2, 2016 at 8:07:32 PM UTC+3, Ринат Галиев wrote:
>>
>> Я не могу заставить работать попеременно 2 gorutines:
>> не использовать новый imports
>> использовать каналы
>> получить результаты: 1 2 3 4 5 6
>> согte after "// Красноломкий "
>>
>> Основной пакет
>>
>>  // красноломкий
>>
>> импорт "Время"
>>
>>  
>>
>> FUNC главный () {
>>
>> идти FUNC () {
>>
>> для _, значение: = диапазон [] INT {1, 3, 5} {
>>
>> // красноломкий
>>
>> Println (значение)
>>
>> // красноломкий
>>
>> }
>>
>> }()
>>
>>  
>>
>> идти FUNC () {
>>
>> для _, значение: = диапазон [] INT {2, 4, 6} {
>>
>> // красноломкий
>>
>> Println (значение)
>>
>> // красноломкий
>>
>> }
>>
>> }()
>>
>>  
>>
>>
>>  
>>
>> time.Sleep (time.Second)
>>
>> }
>>
>

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