errutil

package
v0.60.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package errutil provides error-preserving cleanup helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(closer io.Closer, err *error, operation string)

Close closes a resource and adds any failure to the named return error. Use it with defer so cleanup also runs on early returns and panics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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