MCPcopy Create free account
hub / github.com/dispatchrun/wzprof / binCompiledByGo

Function binCompiledByGo

pclntab.go:17–19  ·  view source on GitHub ↗

Try to detect if the module was compiled by golang/go (not by tinygo).

(b []byte)

Source from the content-addressed store, hash-verified

15
16// Try to detect if the module was compiled by golang/go (not by tinygo).
17func binCompiledByGo(b []byte) bool {
18 return wasmHasCustomSection(b, "go:buildid")
19}
20
21// partialPCHeader is a small fraction of the PCHEader written by the linker.
22// See pclntabHeaderFromData for more details.

Callers 1

ProfilingForFunction · 0.85

Calls 1

wasmHasCustomSectionFunction · 0.85

Tested by

no test coverage detected