package
4.7.0+incompatible
Repository: https://github.com/slemgrim/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.
NewReaderOnError returns a io.Reader that call the notify function when an unexpected (!io.EOF) error happens, after call Read function.
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.
WriteNopCloser returns a WriteCloser with a no-op Close method wrapping the provided Writer w.

# Variables

No description provided by the author