Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadAllOrError ¶
ReadAllOrError will successfully return the data or return the error in the value return value. This is useful to simply test scripts where the data is printed for debugging or testing.
func ReaderToBytes ¶
ReaderToBytes reads from an io.Reader, e.g. io.ReadCloser
func ReaderToReadSeeker ¶ added in v0.47.0
func ReaderToReadSeeker(r io.Reader) (io.ReadSeeker, error)
Types ¶
type SkipWriter ¶ added in v0.49.0
type SkipWriter struct {
// contains filtered or unexported fields
}
SkipWriter is an `io.Writer` that skips writing the first `n` bytes passed.
func NewSkipWriter ¶ added in v0.49.0
func NewSkipWriter(w io.Writer, off int) *SkipWriter
NewSkipWriter returns an SkipWriter that writes to w skipping the first offset off bytes.
Click to show internal directories.
Click to hide internal directories.