closer

package
v0.7.15 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package closer contains a helper for not losing deferred close errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorHandler

func ErrorHandler(c io.Closer, in *error)

ErrorHandler closes c and, if the incoming error pointed to by in is nil, replaces it with the close error (if any).

Types

This section is empty.

Jump to

Keyboard shortcuts

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