From d46b9f94931b128196981c84069c393538402665 Mon Sep 17 00:00:00 2001 From: Kevin Kreitner Date: Sat, 5 Nov 2022 19:44:56 +0100 Subject: [PATCH] Fix examples --- README.md | 2 ++ examples/kind.go | 14 -------------- 2 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 examples/kind.go diff --git a/README.md b/README.md index 0f9edc1..4968988 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,9 @@ Output: } } ] +``` +``` Simply print the wrapped error message: action not possible: some error message Is initial error: true ``` diff --git a/examples/kind.go b/examples/kind.go deleted file mode 100644 index 0b1f266..0000000 --- a/examples/kind.go +++ /dev/null @@ -1,14 +0,0 @@ -package main - -import ( - "github.com/Bibob7/sterrors" -) - -func main() { - // second error that results from the first one - err := sterrors.E("action not possible", sterrors.KindNotFound) - - if sterrors.Is(err, sterrors.KindNotFound) { - sterrors.Log(err) - } -}