1 -- use context.Background --
6 func fn1(ctx context.Context) {}
7 func fn2(x string, ctx context.Context) {}
15 fn1(context.Background()) // want `do not pass a nil Context`
20 // don't flag this conversion
21 _ = (func(context.Context))(nil)
22 // and don't crash on these
26 -- use context.TODO --
31 func fn1(ctx context.Context) {}
32 func fn2(x string, ctx context.Context) {}
40 fn1(context.TODO()) // want `do not pass a nil Context`
45 // don't flag this conversion
46 _ = (func(context.Context))(nil)
47 // and don't crash on these