package
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Feb 6, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package safeclose provides utilities for safe closing of I/O resources.
func Close(objs ...interface{}) error
Close tries to close all objects and return all errors using CloseErrors if there are any.
func CloseAll(objs ...interface{}) ([]error, error)
CloseAll tries to close all objects and return all errors (there are nils if there was no errors).
DEPRECATED - use safeclose.Close(...) instead
CloseErrors merges multiple errors into single type for simpler use.
Error implements error interface.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.