github.com/nozzle/golangci-lint@v1.49.0-nz3/test/testdata/containedctx.go (about)

     1  //golangcitest:args -Econtainedctx
     2  package testdata
     3  
     4  import "context"
     5  
     6  type ok struct {
     7  	i int
     8  	s string
     9  }
    10  
    11  type ng struct {
    12  	ctx context.Context // want "found a struct that contains a context.Context field"
    13  }
    14  
    15  type empty struct{}