Documentation
¶
Index ¶
Constants ¶
View Source
const ( CodeSubject = "subject" CodeInvalid = "invalid" CodeUnknown = "unknown" )
Variables ¶
This section is empty.
Functions ¶
func IsWithStrategy ¶ added in v0.2.0
func IsWithStrategy(err1 error, err2 error, comparable Comparable) bool
Types ¶
type Comparable ¶
func CompareCodeOnlyStrategy ¶
func CompareCodeOnlyStrategy() Comparable
func CompareMessageOnlyStrategy ¶
func CompareMessageOnlyStrategy() Comparable
func CompareStrictStrategy ¶
func CompareStrictStrategy() Comparable
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func (Error) MarshalJSON ¶
type Errors ¶
type Errors struct {
// contains filtered or unexported fields
}
func (*Errors) IsWithStrategy ¶
func (e *Errors) IsWithStrategy(err error, comparable Comparable) bool
func (*Errors) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.