Class StructType
A struct type.
Import path
import semmle.go.TypesDirect supertypes
Indirect supertypes
Predicates
| getField | Gets the field |
| getFieldAtDepth | Gets the field |
| getFieldOfEmbedded | Gets a field of |
| getMethodAtDepth | |
| getMethodOfEmbedded | Gets a method of |
| getOwnField | Get a field with the name |
| hasField | Holds if this struct contains a field |
| hasMethod | Holds if the method set of this type contains a method named |
| hasOwnField | Holds if this struct contains a field |
| hasOwnFieldWithTag | Holds if this struct contains a field |
| pp | Gets a pretty-printed representation of this type, including its structure where applicable. |
| toString | Gets a basic textual representation of this type. |
Inherited predicates
| getEntity | Gets the entity associated with this type. | from Type |
| getLocation | Gets the location of this type. | from Type |
| getMethod | Gets the method | from Type |
| getName | Gets the name of this type, if it has one. | from Type |
| getPackage | Gets the package in which this type is declared, if any. | from Type |
| getPointerType | Gets the pointer type that has this type as its base type. | from Type |
| getQualifiedName | Gets the qualified name of this type, if any. | from Type |
| getUnderlyingType | Gets the underlying type of this type after any type aliases have been replaced with their definition. | from Type |
| hasLocationInfo | DEPRECATED: Use | from Type |
| hasQualifiedName | Holds if this type is declared in a package with path | from Type |
| implements | Holds if this type implements interface | from Type |
| implements | Holds if this type implements an interface that has the qualified name | from Type |
| implementsComparable | Holds if this type implements | from Type |