type unit … func (u *unit) version() int { … } func (u *unit) dwarf64() (bool, bool) { … } func (u *unit) addrsize() int { … } func (d *Data) parseUnits() ([]unit, error) { … } // offsetToUnit returns the index of the unit containing offset off. // It returns -1 if no unit contains this offset. func (d *Data) offsetToUnit(off Offset) int { … }