bytes.Buffer 一个我们经常使用的变长的byte buffer,它提供了对byte的读写操作。 类型组成 type Buffer struct { buf []byte // contents are the bytes buf[off : len(buf)] off int // read at &buf[off], write at &buf[len(buf)] lastRead readOp // last read operation, so that Unread* can work correctly. } buf