What separates a buffer from a byte array or slice? Are buffers just a fancy array?
<p>This is one part of Go I'm having trouble understanding. A buffer is an ordered collection of bytes. Some functions read data into buffers, or out of buffers, and I can make a new buffer out of a []byte.</p> <p>One new thing is that a buffer stores a marker of the 'current position', and has a <code&...阅读全文