Documentation ¶ Index ¶ func Close(obj interface{}) type Closer func New() Closer Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Close ¶ func Close(obj interface{}) Close release all resources holded by the object. Types ¶ type Closer ¶ type Closer interface { // Close release all resources holded by the object. Close() // Done returns a channel that's closed when object was closed. Done() <-chan struct{} } Closer is the interface for object that can release its resources. func New ¶ func New() Closer New returns a closer. Source Files ¶ View all Source files closer.go Click to show internal directories. Click to hide internal directories.