Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseQuiet ¶
CloseQuiet closes a file and logs any error. Should only be used within a defer.
func Contains ¶
Contains checks if err's message contains sub's message. Contains should be used iff either err or sub has lost type information (e.g., due to marshaling). For typed errors, please use `errors.Contains(...)` or `Is()` in recent version of Go.
func ErrorsToStrings ¶
ErrorsToString converts the slice of errors into a slice of corresponding error messages.
func JoinErrors ¶
JoinErrors converts the error slice into a single human-readable error.
func StringsToErrors ¶
StringsToErrors converts a slice of error messages into a slice of corresponding errors.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.