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

Member predicate Public::MethodCallNode::getTarget

Gets the declared target of this call, if it exists.

This doesn’t exist when a function is called via a variable.

Method getTarget()