Documentation ¶ Index ¶ func ReadCloser(b []byte) io.ReadCloser type Buffer func (b *Buffer) Bytes() []byte func (b *Buffer) Cap() int func (b *Buffer) Len() int func (b *Buffer) Reset() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ReadCloser ¶ func ReadCloser(b []byte) io.ReadCloser Types ¶ type Buffer ¶ type Buffer struct { Buf []byte } Buffer is a dump struct that wraps around a byte slice, it does not handle grow like bytes.Buffer but it can be used directly with Append* style function which requires a byte slice directly func (*Buffer) Bytes ¶ func (b *Buffer) Bytes() []byte func (*Buffer) Cap ¶ func (b *Buffer) Cap() int func (*Buffer) Len ¶ func (b *Buffer) Len() int func (*Buffer) Reset ¶ func (b *Buffer) Reset() Source Files ¶ View all Source files buffer.go Click to show internal directories. Click to hide internal directories.