package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jan 24, 2019
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
byteswriter
This Go package implements a io.Writer
that wraps a []byte
.
It's like bytes.Reader
, but then a Writer.
b := make([]byte, 20)
w := byteswriter.NewWriter(b)
// use io.Writer w
See godoc documentation
Documentation
¶
Contains a io.Writer that is backed by a []byte.
It's the bytes.Writer that's missing in the Go standard library.
A Writer implements io.Writer and io.Seeker by writing to the
given byteslice. Unlike a bytes.Buffer, BytesWriter does not resize
the byte slice.
Create a new writer using the given buffer
Source Files
¶
Click to show internal directories.
Click to hide internal directories.