[go-nuts] Re: gofmt: one line if statement

2019-07-05 Thread Malcolm Gorman
Excellent idea! Occasionally an error message needs to be created or elaborated, requiring a multi-line if statement body. But the common situation is where the error is simply returned to the calling function using a single-statement if statement. If these single-statement if statements could

[go-nuts] Re: Is flatbuffers useful for Golang?

2017-12-18 Thread Malcolm Gorman
FlatBuffers is a cross-platform binary format like protobuf and gob, but it is MUCH FASTER than protobuf and gob. It can be challenging to learn (at first) so I've written a library in Go which goes the extra mile and generates the FlatBuffers schema and Go code that glues the flatc code into a