in macho.go [36:44]
func (f *machoFile) isGoExecutable() (ok bool, err error) {
for _, section := range f.objFile.Sections {
switch section.Name {
case "__gosymtab", "__gopclntab", "__go_buildinfo":
return true, nil
}
}
return false, nil
}