Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorContainsToken ¶
func ErrorContainsToken(err error, token string) cmp.Comparison
ErrorContainsToken returns a comparison which checks whether the given error contains the given token. A token is contained only if there is a substring in the error message equal to the token, at the start and end of the substring there's a word boundary and the substring is not preceeded or followed by dot.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.