func IsExecutable()

in openwhisk/filetype.go [47:59]


func IsExecutable(buf []byte, runtime string) bool {
	Debug("checking executable for %s", runtime)
	switch runtime {
	case "darwin":
		return IsMach64(buf) || IsBangPath(buf)
	case "linux":
		return IsElf(buf) || IsBangPath(buf)
	case "windows":
		return IsExe(buf)
	default:
		return false
	}
}