{"modulePath":"github.com/knz/errors","version":"v1.2.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package assert\n\n## Constants\n\n```go\nconst AssertionErrorHint = `You have encountered an unexpected error.`\n```\nAssertionErrorHint is the hint emitted upon assertion failures.\n\n## Functions\n\n```go\nfunc HasAssertionFailure(err error) bool\n```\nHasAssertionFailure returns true if the error or any of its causes is an assertion failure annotation.\n\n```go\nfunc IsAssertionFailure(err error) bool\n```\nIsAssertionFailure returns true if the error (not its causes) is an assertion failure annotation. Consider using markers.If or HasAssertionFailure to test both the error and its causes.\n\n```go\nfunc WithAssertionFailure(err error) error\n```\nWithAssertionFailure decorates the error with an assertion failure marker. This is not intended to be used directly (see AssertionFailed() for further decoration).\n\nDetail is shown: - when formatting with \\`%+v\\`. - in Sentry reports.\n\n","path":"github.com/knz/errors/assert","name":"assert","synopsis":"","isRedistributable":true}
