From 271465c40138a6dc16a58ef28aad1152d801deae Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Thu, 4 Jul 2024 07:50:53 -0700 Subject: [PATCH] Is() --- is.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 is.go diff --git a/is.go b/is.go new file mode 100644 index 0000000..3adec89 --- /dev/null +++ b/is.go @@ -0,0 +1,9 @@ +package erorr + +import ( + "errors" +) + +func Is(err, target error) bool { + return errors.Is(err, target) +}