From 9b1b0c8986a81b733c1a76d76ef1431ee864d32e Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 30 Oct 2024 16:28:56 +0100 Subject: [PATCH] remove unused contrib folder --- contrib/example.go | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 contrib/example.go diff --git a/contrib/example.go b/contrib/example.go deleted file mode 100644 index fb02931..0000000 --- a/contrib/example.go +++ /dev/null @@ -1,21 +0,0 @@ -package contrib - -import "context" - -func ok() { - ctx := context.Background() - - for i := 0; i < 10; i++ { - ctx := context.WithValue(ctx, "key", i) - _ = ctx - } -} - -func notOk() { - ctx := context.Background() - - for i := 0; i < 10; i++ { - ctx = context.WithValue(ctx, "key", i) // "nested context in loop" - _ = ctx - } -}