mirror of
https://codeberg.org/superseriousbusiness/gotosocial.git
synced 2024-12-28 03:48:17 +03:00
e43a46e982
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
18 lines
327 B
Go
18 lines
327 B
Go
package errors
|
|
|
|
import "errors"
|
|
|
|
// Is wraps "errors".Is()
|
|
func Is(err, target error) bool {
|
|
return errors.Is(err, target)
|
|
}
|
|
|
|
// As wraps "errors".As()
|
|
func As(err error, target interface{}) bool {
|
|
return errors.As(err, target)
|
|
}
|
|
|
|
// Unwrap wraps "errors".Unwrap()
|
|
func Unwrap(err error) error {
|
|
return errors.Unwrap(err)
|
|
}
|