[go-nuts] Re: gorutine, channels

2016-09-05 Thread Ринат Галиев
I'm sorry, I do not know how it happened Allowed to amend the sections of code that are marked commentary «// redact». this is original code: https://play.golang.org/p/tUMlHWHfJE пятница, 2 сентября 2016 г., 20:07:32 UTC+3 пользователь Ринат Галиев написал: > > Я не могу заставить работать п

[go-nuts] Re: gorutine, channels

2016-09-05 Thread Ринат Галиев
Allowed to amend the sections of code that are marked commentary «// redact». -- 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...@googlegroup

[go-nuts] Re: gorutine, channels

2016-09-05 Thread Ринат Галиев
I'm sorry, I do not know why the code is translated))) This is original: https://play.golang.org/p/vWkfa2l0lC -- 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 gola

[go-nuts] Re: gorutine, channels

2016-09-05 Thread Ринат Галиев
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.

[go-nuts] Re: gorutine, channels

2016-09-02 Thread djadala
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 "// Красноломк

[go-nuts] Re: gorutine, channels

2016-09-02 Thread djadala
On Friday, September 2, 2016 at 8:07:32 PM UTC+3, Ринат Галиев wrote: > > Я не могу заставить работать попеременно 2 gorutines: > не использовать новый imports > использовать каналы > получить результаты: 1 2 3 4 5 6 > согte after "// Красноломкий " > > Основной пакет > > // красноломкий > > имп

[go-nuts] Re: gorutine, channels

2016-09-02 Thread skirmish
Hi, I took the liberty of creating what I think you're trying to achieve in the go playground so I could test: https://play.golang.org/p/IgtSUNLakJ Are you expecting the output of the two goroutines to be run in parallel so you get the output 1 2 3 4 5 6? Cheers On Friday, September 2, 2016 a