closer

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package closer provides utilities for closing resources with error logging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogClose

func LogClose(c io.Closer, logf LogFunc)

LogClose closes c and logs any error using the provided logger. Errors from closing an already-closed network connection are silently ignored.

Types

type LogFunc

type LogFunc func(string, ...interface{})

LogFunc is a logging function compatible with log.Printf.

Jump to

Keyboard shortcuts

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