Categorygithub.com/snaker95/errors
modulepackage
0.0.2
Repository: https://github.com/snaker95/errors.git
Documentation: pkg.go.dev

# README

errors

go语言关于 error 处理, 扩展为带有 code

# Functions

As finds the first error in err's chain that matches target, and if so, sets target to that error value and returns true.
Code returns the http code for a error.
FormatError try to convert an error to *Error.
Is reports whether any error in err's chain matches target.
No description provided by the author
Unwrap returns the result of calling the Unwrap method on err, if err's type contains an Unwrap method returning error.
No description provided by the author
New returns an error object for the code, message.

# Constants

No description provided by the author

# Structs

No description provided by the author