Skip to content

debug/pe: add Machine type with String method #60198

Open
@jamietanna

Description

@jamietanna

When using the debug/pe package to look up information about binaries, I noticed that there's a subtle API difference compared to debug/macho and debug/elf.

For instance, in the debug/elf package, Machine is defined as being able to call:

f.Machine.String()

Whereas when using the debug/pe package, Machine has no such definition in the FileHeader.

It would be good to align the API of this package alongside how we do it in the other packages:

  • Extract a type for Machine
  • Add a String() method
  • Add a GoString() method

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Accepted

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions