package
1.10.16
Repository: https://github.com/hyperhq/hypercli.git
Documentation: pkg.go.dev

# Functions

FprintfIfNotEmpty prints the string value if it's not empty.
FprintfIfTrue prints the boolean value if it's true.
HashData returns the sha256 sum of src.
MultiReadSeeker returns a ReadSeeker that's the logical concatenation of the provided input readseekers.
NewBytesPipe creates new BytesPipe, initialized by specified slice.
NewCancelReadCloser creates a wrapper that closes the ReadCloser when the context is cancelled.
NewReadCloserWrapper returns a new io.ReadCloser.
NewReaderErrWrapper returns a new io.Reader.
NewWriteCloserWrapper returns a new io.WriteCloser.
NewWriteCounter returns a new WriteCounter.
NewWriteFlusher returns a new WriteFlusher.
NopWriteCloser returns a nopWriteCloser.
TempDir on Unix systems is equivalent to ioutil.TempDir.

# Variables

ErrClosed is returned when Write is called on a closed BytesPipe.

# Structs

BytesPipe is io.ReadWriteCloser which works similarly to pipe(queue).
NopFlusher represents a type which flush operation is nop.
NopWriter represents a type which write operation is nop.
OnEOFReader wraps a io.ReadCloser and a function the function will run at the end of file or close the file.
WriteCounter wraps a concrete io.Writer and hold a count of the number of bytes written to the writer during a "session".
WriteFlusher wraps the Write and Flush operation ensuring that every write is a flush.