Skip to content

Commit

Permalink
Add rationale to README
Browse files Browse the repository at this point in the history
  • Loading branch information
zemanlx authored and sivchari committed Feb 22, 2022
1 parent 406d433 commit bd932c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

[![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)

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

## Instruction

Expand Down

0 comments on commit bd932c8

Please # to comment.