CodeQL library for Go
codeql/go-all 4.2.5-dev (changelog, source)
Search

Predicate readStep

Holds if data can flow from node1 to node2 via a read of c. Thus, node1 references an object with a content c whose value ends up in node2.

Import path

import semmle.go.dataflow.internal.DataFlowPrivate
predicate readStep(Node node1, ContentSet cs, Node node2)