Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finalizer ¶
type Finalizer struct {
// contains filtered or unexported fields
}
Finalizer implements the defer-close pattern to guarantee: - close is always called exactly once - any error is properly surfaced See more details below: - https://www.digitalocean.com/community/tutorials/understanding-defer-in-go - https://www.joeshaw.org/dont-defer-close-on-writable-files/
func WithCloser ¶
Click to show internal directories.
Click to hide internal directories.