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

Member predicate Stmt::getKind

Gets the kind of this statement, which is an integer value representing the statement’s node type.

Note that the mapping from node types to integer kinds is considered an implementation detail and subject to change without notice.

int getKind()