angr.go.knowledge_plugins.go_types

class angr.go.knowledge_plugins.go_types.GoTypes

Bases: KnowledgeBasePlugin

The runtime type descriptors of this binary (angr.go.analyses.type_descriptors), parsed once on first use: descriptor address <-> canonical Go type string, itabs, and the named-type records that back kb.go_signatures.

__init__(kb)
property descriptors: GoTypeDescriptors
property loaded: bool
property go_version: str | None
property types: GoSignatureSet
name_at(addr)

The canonical Go type string of the descriptor at addr.

Return type:

str | None

Parameters:

addr (int)

addr_of(name)

The descriptor address of the type spelled name.

Return type:

int | None

Parameters:

name (str)

itab_at(addr)

(interface type, concrete type) of the itab at addr.

Return type:

tuple[str, str] | None

Parameters:

addr (int)

method_at(addr)

(receiver type, method name, func type) of the method whose code starts at addr.

Return type:

tuple[str, str, str] | None

Parameters:

addr (int)

type_at(addr)

The SimType of the descriptor at addr, built by kb.go_signatures.

Return type:

SimType | None

Parameters:

addr (int)

copy()