[go-nuts] access runtime implemented functions

2017-10-14 Thread traetox
I would like to be able to call the runtime implemented "now()" function similar to how the "time" package does. For example the Time.Now() function in the time package looks like the following func now() (sec int64,nsec int32, mono int64) func Now() Time{ sec, nsec, mono := now() ...

Re: [go-nuts] access runtime implemented functions

2017-10-15 Thread traetox
that you still have the > necessary compatiblity. It is, perhaps, also worth looking at for a Go 2.x. > > On Sun, Oct 15, 2017 at 2:59 AM traetox > > wrote: > >> I would like to be able to call the runtime implemented "now()" function >> similar to how the

[go-nuts] JSON empty slice and/or empty set encoding question/proposal

2017-03-27 Thread traetox
Hello all, I have swept through the list and gone through the pkg/encoding/json package and _believe_ I haven't missed anything, but am not 100% sure. When encoding structures into JSON which contain slices/arrays/maps my frontend devs consistently complain about the encoding of empty or nil m

[go-nuts] Re: JSON empty slice and/or empty set encoding question/proposal

2017-03-30 Thread traetox
x27;t support that patch" or "sure, go for it." Thank you, Kris On Thursday, March 30, 2017 at 9:10:38 AM UTC-6, C Banning wrote: > > Why not provide a "NewFoo() *Foo" function instead? > https://play.golang.org/p/GE8cMgwe24 > > On Monday, March 27, 20