mirror of
https://github.com/Crocmagnon/fatcontext.git
synced 2024-12-23 22:41:57 +01:00
remove unused contrib folder
This commit is contained in:
parent
1c05d23bb3
commit
9b1b0c8986
1 changed files with 0 additions and 21 deletions
|
@ -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
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue