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

Member predicate StructType::getOwnField

Get a field with the name name; isEmbedded is true if the field is embedded.

Note that this does not take promoted fields into account.

Field getOwnField(string name, boolean isEmbedded)