package
1.9.0
Repository: https://github.com/alexandrev/docker.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.
NewBufReader returns a new bufReader.
NewBufReaderWithDrainbufAndBuffer returns a BufReader with drainBuffer and buffer.
NewBytesPipe creates new BytesPipe, initialized by specified slice.
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.

# Structs

BytesPipe is io.ReadWriter which works similarly to pipe(queue).
NopFlusher represents a type which flush opetatin 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.