Re: [go-nuts] Updating a struct from goroutines

2018-09-25 Thread Michael Ellis
Thanks, Justin. The struct in the real app is a flat collection of int, string, float64 and bool. I appreciate the reminder, On Tuesday, September 25, 2018 at 4:13:25 PM UTC-4, Justin Israel wrote: > > > > On Wed, Sep 26, 2018, 6:38 AM > wrote: > >> Hi, new gopher here. >> I considered asking

Re: [go-nuts] Updating a struct from goroutines

2018-09-25 Thread Justin Israel
On Wed, Sep 26, 2018, 6:38 AM wrote: > Hi, new gopher here. > I considered asking this on SO, but they (rightly, IMO) discourage "Is > this a good way to do it?" questions. Hope that's ok here. > > By way of background, I'm porting a largish industrial control application > from Python to Go.

[go-nuts] Updating a struct from goroutines

2018-09-25 Thread michael . f . ellis
Hi, new gopher here. I considered asking this on SO, but they (rightly, IMO) discourage "Is this a good way to do it?" questions. Hope that's ok here. By way of background, I'm porting a largish industrial control application from Python to Go. The Python version uses multiple processes