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