gostaticanalysis / ctxfield

Analyzer: reports context.Context which belongs to a struct as a field

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ctxfield Go Documentation Travis Go Report Card codecov

ctxfield reports context.Context which belongs to a struct as a field. ctxfield ignores a struct which implements an interface.

Install

$ go get github.com/gostaticanalysis/ctxfield/cmd/ctxfield

Usage

$ go vet -vettool=`which ctxfield` pkgname

About

Analyzer: reports context.Context which belongs to a struct as a field

License:MIT License


Languages

Language:Go 100.0%