Documentation ¶ Overview ¶ Package objfile implements portable access to OS-specific executable files. Index ¶ type File func Open(name string) (*File, error) func (f *File) Close() error func (f *File) GOARCH() string func (f *File) PCLineTable() (*gosym.Table, error) func (f *File) Symbols() ([]Sym, error) func (f *File) Text() (uint64, []byte, error) type Sym Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type File ¶ type File struct { // contains filtered or unexported fields } A File is an opened executable file. func Open ¶ func Open(name string) (*File, error) Open opens the named file. The caller must call f.Close when the file is no longer needed. func (*File) Close ¶ func (f *File) Close() error func (*File) GOARCH ¶ func (f *File) GOARCH() string func (*File) PCLineTable ¶ func (f *File) PCLineTable() (*gosym.Table, error) func (*File) Symbols ¶ func (f *File) Symbols() ([]Sym, error) func (*File) Text ¶ func (f *File) Text() (uint64, []byte, error) type Sym ¶ type Sym struct { Name string // symbol name Addr uint64 // virtual address of symbol Size int64 // size in bytes Code rune // nm code (T for text, D for data, and so on) Type string // XXX? } A Sym is a symbol defined in an executable file. Source Files ¶ View all Source files elf.go goobj.go macho.go objfile.go pe.go plan9obj.go Click to show internal directories. Click to hide internal directories.