Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapWithSentinel ¶ added in v1.0.0
Types ¶
type Const ¶ added in v1.0.0
type Const string
Const is used for constant sentinels
const Err1 = xerror.Const("const error")
type SentinelError ¶ added in v1.0.0
type SentinelError struct {
// contains filtered or unexported fields
}
func (*SentinelError) Error ¶ added in v1.0.0
func (e *SentinelError) Error() string
func (*SentinelError) Is ¶ added in v1.0.0
func (e *SentinelError) Is(target error) bool
func (*SentinelError) Unwrap ¶ added in v1.0.0
func (e *SentinelError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.