Skip to main content

findGoFunctionFileOffset

@webda/content-mapper


Function: findGoFunctionFileOffset()

findGoFunctionFileOffset(buf, funcName): number

Defined in: packages/content-mapper/src/patch-tsc.ts:168

Locate the file offset of a Go function in a compiled Go 1.20+ binary via its embedded pclntab.

Parameters​

buf​

Buffer

Raw binary buffer

funcName​

string

Fully-qualified Go symbol name

Returns​

number

File offset of the function entry point in the binary