package
6.0.0-20220823060123-ee3621dd571c
Repository: https://github.com/accel-byte/go-git.git
Documentation: pkg.go.dev
# Functions
CheckClose calls Close on the given io.Closer.
NewContextReadCloser as NewContextReader but with io.Closer interface.
NewContextReader wraps a reader to make it respect given Context.
NewContextWriteCloser as NewContextWriter but with io.Closer interface.
NewContextWriter wraps a writer to make it respect given Context.
NewReadCloser creates an `io.ReadCloser` with the given `io.Reader` and `io.Closer`.
NewReadCloserOnError returns a io.ReadCloser that call the notify function when an unexpected (!io.EOF) error happens, after call Read function.
NewReadCloserWithCloser creates an `io.ReadCloser` with the given `io.ReaderCloser` and `io.Closer` that ensures that the closer is closed on close.
NewReaderOnError returns a io.Reader that call the notify function when an unexpected (!io.EOF) error happens, after call Read function.
No description provided by the author
NewWriteCloser creates an `io.WriteCloser` with the given `io.Writer` and `io.Closer`.
NewWriteCloserOnError returns a io.WriteCloser that call the notify functionwhen an unexpected (!io.EOF) error happens, after call Write function.
NewWriterOnError returns a io.Writer that call the notify function when an unexpected (!io.EOF) error happens, after call Write function.
NonEmptyReader takes a reader and returns it if it is not empty, or `ErrEmptyReader` if it is empty.
No description provided by the author
WriteNopCloser returns a WriteCloser with a no-op Close method wrapping the provided Writer w.
# Variables
No description provided by the author