Documentation ¶
Overview ¶
Package ext contains some extra code which does not fit into the categorization of the stdlib.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoopCloser = CloserFunc(func() {})
NoopCloser is a dummy Closer implementation which can be used as a fallback.
Functions ¶
Types ¶
type CloserFunc ¶
type CloserFunc func()
CloserFunc makes any function a Closer.
func (CloserFunc) Close ¶
func (f CloserFunc) Close() (err error)
Close calls the underlying function and converts any panic to an error.
Click to show internal directories.
Click to hide internal directories.