Standard Library

GoDebugMacho

Go stdlib package — debug/macho. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.Cpu.GoString()Neutral
#
Signature
Cpu.GoString() string

Cpu.GoString function.

.Cpu.String()Neutral
#
Signature
Cpu.String() string

Cpu.String function.

.FatFile.Close()Neutral
#
Signature
FatFile.Close() error

FatFile.Close function.

.File.Close()Neutral
#
Signature
File.Close() error

Close closes the File.

.File.DWARF()Neutral
#
Signature
File.DWARF() (*dwarf.Data, error)

DWARF returns the DWARF debug information for the Mach-O file.

.File.ImportedLibraries()Neutral
#
Signature
File.ImportedLibraries() ([]string, error)

ImportedLibraries returns the paths of all libraries

.File.ImportedSymbols()Neutral
#
Signature
File.ImportedSymbols() ([]string, error)

ImportedSymbols returns the names of all symbols

.File.Section()Neutral
#
Signature
File.Section(name string) *Section

Section returns the first section with the given name, or nil if no such

.File.Segment()Neutral
#
Signature
File.Segment(name string) *Segment

Segment returns the first Segment with the given name, or nil if no such segment exists.

.FormatError.Error()Neutral
#
Signature
FormatError.Error() string

FormatError.Error function.

Fully-Qualified Names

FQNField
debug/machofqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # debug/macho