ioconvenience

package
v1.12.5 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseWithLog

func CloseWithLog(r io.Closer, log logrus.FieldLogger)

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