// excludeExecutable excludes all executable implementation .go files.
// They have "executable_" prefix.
774147
func excludeExecutable(goFiles []string) []string {
	var s []string
	for _, f := range goFiles {
		if strings.HasPrefix(f, "executable_") {
			continue
		}
		s = append(s, f)
	}
	return s
}
942921
func (api *SubnetAPI) Exclude(key string) *SubnetAPI {
	api.exclude(key)
	return api
}
147550
func (api *ArchiveAPI) Exclude(key string) *ArchiveAPI {
	api.exclude(key)
	return api
}
722974
func get_executable_filename() string {
	b := make([]uint16, syscall.MAX_PATH)
	ret, _, err := syscall.Syscall(proc_get_module_file_name.Addr(), 3,
		0, uintptr(unsafe.Pointer(&b[0])), uintptr(len(b)))
	if int(ret) == 0 {
		panic(fmt.Sprintf("GetModuleFileNameW : err %d", int(err)))
	}
	return syscall.UTF16ToString(b)
}
854837
func (api *NoteAPI) Exclude(key string) *NoteAPI {
	api.exclude(key)
	return api
}
1101596
func (api *PrivateHostAPI) Exclude(key string) *PrivateHostAPI {
	api.exclude(key)
	return api
}
1337776
func (c *adminClient) Excludes(excludes []string) AdminClient {
	c.excludes = excludes
	return c
}
108397
func (api *PacketFilterAPI) Exclude(key string) *PacketFilterAPI {
	api.exclude(key)
	return api
}
795137
func (api *ZoneAPI) Exclude(key string) *ZoneAPI {
	api.exclude(key)
	return api
}
867304
func (api *SIMAPI) Exclude(key string) *SIMAPI {
	api.exclude(key)
	return api
}
126479
func (s *FunctionConfiguration) SetExecutable(v string) *FunctionConfiguration {
	s.Executable = &v
	return s
}
880389
func isExecutable(buf []byte) bool {
	// intel Mach-O executables start with 0xCEFAEDFE or 0xCFFAEDFE
	// (old PowerPC Mach-O executables started with 0xFEEDFACE)
	if (buf[0] == 0xCE || buf[0] == 0xCF) && buf[1] == 0xFA && buf[2] == 0xED && buf[3] == 0xFE {
		return true
	}

	// Mach-O universal binaries start with 0xCAFEBABE
	// it's Apple's 'fat binary' stuff that contains multiple architectures
	if buf[0] == 0xCA && buf[1] == 0xFE && buf[2] == 0xBA && buf[3] == 0xBE {
		return true
	}

	// ELF executables start with 0x7F454C46
	// (e.g. 0x7F + 'ELF' in ASCII)
	if buf[0] == 0x7F && buf[1] == 0x45 && buf[2] == 0x4C && buf[3] == 0x46 {
		return true
	}

	// Shell scripts start with a shebang (#!)
	// https://en.wikipedia.org/wiki/Shebang_(Unix)
	if buf[0] == 0x23 && buf[1] == 0x21 {
		return true
	}

	return false
}
1158555
func (api *MobileGatewayAPI) Exclude(key string) *MobileGatewayAPI {
	api.exclude(key)
	return api
}
703763
func (api *InternetAPI) Exclude(key string) *InternetAPI {
	api.exclude(key)
	return api
}
426705
func (m *Middleware) ExcludeURL(u string) error {
	if _, err := url.Parse(u); err != nil {
		return err
	}
	m.excludeURLs = append(m.excludeURLs, u)
	return nil
}
1036998
func (api *IPAddressAPI) Exclude(key string) *IPAddressAPI {
	api.exclude(key)
	return api
}
1078842
func (api *IPv6NetAPI) Exclude(key string) *IPv6NetAPI {
	api.exclude(key)
	return api
}