Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscardAfterClose ¶
func DiscardAfterClose(wc io.WriteCloser) io.WriteCloser
DiscardAfterClose is an io.WriteCloser that discards writes after it is closed without errors. It is useful as a target for a slog.Sink such that an underlying WriteCloser, like a file, can be cleaned up without race conditions from still-active loggers.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.