[go-nuts] Enforcing decimal output when using json.Encode

2016-11-16 Thread Eric Greer
It appears that until go 1.8 releases, float64 values with six places of precision will always be output in scientific notation when sent through json.Marshal(). This recently fixed issue explains this: https://github.com/golang/go/issues/6384#issuecomment-261140529 In short, encoding float64

Re: [go-nuts] Re: broadcasting on a set of channels

2016-06-15 Thread Eric Greer
Thanks for the reply. What I'm trying to do is to make a web socket server where all clients are sent broadcast messages. When the client connects, a channel is creates and registered in a global list of client channels. When a client disconnects, the channel gets closed. The broadcaster does not k

Re: [go-nuts] Re: broadcasting on a set of channels

2016-06-15 Thread Eric Greer
Perfect. Thanks! On Wed, Jun 15, 2016, 12:44 PM Ian Lance Taylor wrote: > On Wed, Jun 15, 2016 at 12:25 PM, Eric Greer wrote: > > > > Thanks for the reply. What I'm trying to do is to make a web socket > server > > where all clients are sent broadcast messages.