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

Member predicate CallExpr::getCalleeName

Gets the name of the invoked function, method or variable if it can be determined syntactically.

Note that if a variable is being called then this gets the variable name rather than the name of the function or method that has been assigned to the variable.

string getCalleeName()