safe

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(ctx context.Context, closer io.Closer)

Close safely closes an io.Closer and reports any error via errutil.Handle. It handles nil closers gracefully.

func Copy

func Copy(ctx context.Context, dst io.Writer, src io.Reader)

Copy safely copies data from src to dst and reports any error via errutil.Handle.

func Write

func Write(ctx context.Context, w io.Writer, data []byte)

Write safely writes data to an io.Writer and reports any error via errutil.Handle. It handles nil writers gracefully.

Types

This section is empty.

Jump to

Keyboard shortcuts

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