Re: [go-nuts] What does a deadlock mean in golang?

2019-01-29 Thread diego patricio
Hi, maybe it's because no goroutine read the channel, the four value cause the deadlock because for write that value there is no space in the channel, sorry by my English, I'm new in go too... El mar., 29 ene. 2019 9:55, 伊藤和也 escribió: > I know the general meaning of a deadlock, but I don't k

Re: [go-nuts] Producer-Consumer with Goroutines

2019-01-25 Thread diego patricio
> On Thu, Jan 24, 2019 at 7:12 PM diego patricio wrote: > >> Hi all, i'am just learning Go and goroutines, I have three goroutines >> (main, producer, consumer) and I dont know how synchronize producer and >> consumer for print one value at time, the output that

Re: [go-nuts] Producer-Consumer with Goroutines

2019-01-24 Thread diego patricio
fmt.Printf("Consumer %v\n", i) > } > > ..but I imagine that's not the point of the excercise. > > -Ian > > Quoting diego patricio (2019-01-24 16:48:35) > >Hi, thanks for your response, still� I dont get right result > >image.png >

Re: [go-nuts] Producer-Consumer with Goroutines

2019-01-24 Thread diego patricio
channel. you have used a buffered channel of 1. > > Sent from my iPhone > > On 24. Jan 2019, at 22:11, diego patricio wrote: > > Hi all, i'am just learning Go and goroutines, I have three goroutines > (main, producer, consumer) and I dont know how synchronize producer and

[go-nuts] Producer-Consumer with Goroutines

2019-01-24 Thread diego patricio
Hi all, i'am just learning Go and goroutines, I have three goroutines (main, producer, consumer) and I dont know how synchronize producer and consumer for print one value at time, the output that I want is Producer 0 Consumer 0 Producer 1 Consumer 1 .. but the output of my program it's diferen

Re: [go-nuts] Re: What does "nil implay?

2019-01-21 Thread diego patricio
>From stackoverflow, i think that is a proper explanation [image: image.png] https://stackoverflow.com/questions/35983118/what-does-nil-mean-in-golang Regards El lun., 21 ene. 2019 a las 14:19, 伊藤和也 () escribió: > So what do you think "nil" represents instead? > "nil" is just a special value?