Skip to content

Commit bd932c8

Browse files
zemanlxsivchari
authored andcommitted
Add rationale to README
1 parent 406d433 commit bd932c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
[![test_and_lint](https://github.com/sivchari/containedctx/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/sivchari/containedctx/actions/workflows/ci.yml)
44

5-
containedctx is a linter that detects struct contained context.Context field
5+
containedctx is a linter that detects struct contained context.Context field.
6+
This is discouraged technique in favour of passing context as first argument of method or function.
7+
For rationale please read [Contexts and structs](https://go.dev/blog/context-and-structs) the Go blog post.
68

79
## Instruction
810

0 commit comments

Comments
 (0)