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

Member predicate Field::getDeclaringType

Gets the struct type declaring this field.

StructType getDeclaringType()