MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / pluginExtension

Function pluginExtension

internal/pluginhost/platform.go:103–112  ·  view source on GitHub ↗
(goos string)

Source from the content-addressed store, hash-verified

101}
102
103func pluginExtension(goos string) string {
104 switch goos {
105 case "darwin":
106 return ".dylib"
107 case "windows":
108 return ".dll"
109 default:
110 return ".so"
111 }
112}
113
114func selectPluginFiles(root string, desiredVersions ...map[string]string) ([]pluginFile, error) {
115 selected, _, errSelect := selectPluginFilesWithCandidates(root, desiredVersions...)

Calls

no outgoing calls