Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithDetails ¶
WithDetails returns an error wrapping err, appended with a string representation of details separated by ": ".
Example
var ErrNotFound = errors.New("not found")
err := WithDetails(ErrNotFound, "abc.jpg", "deleted yesterday")
errors.Is(err, ErrNotFound) == true
err.Error() == "not found: abc.jpg: deleted yesterday"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.