Documentation ¶ Index ¶ type DataMap func New(layoutMap any) (*DataMap, error) func (dataMap *DataMap) ReadFromDWARF(ef *elf.File) error type Extractor func (d *Extractor) Set(value int64) error type Operation func (o Operation) String() string type RouteNode func (rn *RouteNode) IsLeaf() bool func (rn *RouteNode) Key() string func (rn *RouteNode) Leaf() *RouteNode Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type DataMap ¶ type DataMap struct { Routes []*RouteNode } func New ¶ func New(layoutMap any) (*DataMap, error) New generates a DataMap from the given struct. Given argument must be a pointer to a struct. The struct fields must be tagged with `offsetof` or `sizeof` tags. The pointer is needed to be able to set the fields. func (*DataMap) ReadFromDWARF ¶ func (dataMap *DataMap) ReadFromDWARF(ef *elf.File) error type Extractor ¶ type Extractor struct { Source string Op Operation Static bool // contains filtered or unexported fields } func (*Extractor) Set ¶ func (d *Extractor) Set(value int64) error type Operation ¶ type Operation int const ( OpOffsetOf Operation = iota OpSizeOf ) func (Operation) String ¶ func (o Operation) String() string type RouteNode ¶ type RouteNode struct { Next *RouteNode Type string Extractors []*Extractor // contains filtered or unexported fields } func (*RouteNode) IsLeaf ¶ func (rn *RouteNode) IsLeaf() bool func (*RouteNode) Key ¶ func (rn *RouteNode) Key() string func (*RouteNode) Leaf ¶ func (rn *RouteNode) Leaf() *RouteNode Source Files ¶ View all Source files datamap.go dwarf.go Click to show internal directories. Click to hide internal directories.