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 ReaderToReadSeeker ¶ added in v0.47.0
func ReaderToReadSeeker(r io.Reader) (io.ReadSeeker, error)
ReaderToReadSeeker converts an `io.Reader` to an `io.ReadSeeker`. It does this by reading all data in `io.Reader`.
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. This is useful when the `io.Writer` writes some undesirable data which will be omitted with this functionality.
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.