{"modulePath":"github.com/interspace/errors","version":"v1.2.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package markers\n\n## Functions\n\n```go\nfunc If(err error, pred func(err error) (interface{}, bool)) (interface{}, bool)\n```\nIf returns a predicate's return value the first time the predicate returns true.\n\nNote: if any of the error types has been migrated from a previous package location or a different type, ensure that RegisterTypeMigration() was called prior to If().\n\n```go\nfunc Is(err, reference error) bool\n```\nIs determines whether one of the causes of the given error or any of its causes is equivalent to some reference error.\n\nNote: if any of the error types has been migrated from a previous package location or a different type, ensure that RegisterTypeMigration() was called prior to Is().\n\n```go\nfunc IsAny(err error, references ...error) bool\n```\nIsAny is like Is except that multiple references are compared.\n\nNote: if any of the error types has been migrated from a previous package location or a different type, ensure that RegisterTypeMigration() was called prior to IsAny().\n\n```go\nfunc Mark(err error, reference error) error\n```\nMark creates an explicit mark for the given error, using the same mark as some reference error.\n\nNote: if any of the error types has been migrated from a previous package location or a different type, ensure that RegisterTypeMigration() was called prior to Mark().\n\n","path":"github.com/interspace/errors/markers","name":"markers","synopsis":"","isRedistributable":true}
