package
Version:
v0.0.0-...-05ee0c8
Opens a new window with list of versions in this module.
Published: Aug 25, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package closers provides utilities for working with io.Closer implementations.
Noop is an io.Closer implementation that returns nil on Close.
Close the provided io.Closer implementation, logging if there's an error. This is typically used with a defer
statement.
type CloseFunc func() error
CloseFunc is used as an adaptor to create io.Closer implementations for functions.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.