package
Version:
v1.2.0
Opens a new window with list of versions in this module.
Published: Mar 22, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 193
Opens a new window with list of known importers.
Documentation
¶
Package safeclose provides utilities for safe closing of I/O resources.
func Close(obj interface{}) error
Close closes closable I/O stream.
func CloseAll(objs ...interface{}) (details []error, errOccured error)
CloseAll tries to close all objects and return all errors (there are nils if there was no errors).
type CloserWithoutErr interface {
Close()
}
CloserWithoutErr is similar interface to GoLang Closer but Close() does not return error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.