Closed ghost closed 3 years ago
On it, thank you for the report.
Also, is the "tick" concept and hence the division by 100 really necessary?
Unfortunately the 'tick' logic is necessary to keep compatibility with the standard: https://github.com/RainwayApp/bebop/wiki/Wire-format#dates Otherwise generated messages could fail to be parsed by other bebop parsers.
I'm not particularly fond of it myself.
@200sc makes sense. Thanks for the quick fix.
Results in code such as:
iohelp.WriteInt64Bytes(buf[at:], (*bbp.Start.UnixNano()/100))
iohelp.WriteInt64Bytes(buf[at:], (*bbp.End.UnixNano()/100))
golangci-lint run my_obj.go