Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Close ¶
Close safely closes an io.Closer and reports any error via errutil.Handle. It handles nil closers gracefully.
func CloseExcept ¶ added in v0.3.0
CloseExcept closes an io.Closer and reports the error via errutil.Handle unless it matches one of the given sentinels. It exists because some Close implementations use a sentinel to signal a normal shutdown — BigQuery's managedwriter returns io.EOF from Close on a healthy stream — and reporting that as an error buries real failures under per-call noise. Pass no sentinels to get the plain Close behaviour. It handles nil closers gracefully.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.