4 ms·
Idiomatic go would have you using bounded readers though.
by foobiekr 5y ago
Idiomatic go would have you using bounded readers though.
- JulianMorrison 5y agoEither you read data into a fixed byte[] and stop at its capacity, or you read data into an unbounded byte[] by using append, and Go looks after the capacity, either way, you can't go off the end.