ioconvenience

package
v1.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseWithLog

func CloseWithLog(log *logrus.Entry, r io.Closer)

Types

type ErrorWriter

type ErrorWriter struct {
	// contains filtered or unexported fields
}

Enable calling Write() multiple times in succession, without error checking. ErrorWriter does not write more after an error occurred.

func NewErrorWriter

func NewErrorWriter(w io.Writer) *ErrorWriter

func (ErrorWriter) Status

func (w ErrorWriter) Status() (int, error)

func (ErrorWriter) Write

func (w ErrorWriter) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL