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

Function CurrentPlatform

internal/homeplugins/sync.go:85–90  ·  view source on GitHub ↗

CurrentPlatform reports the platform used by pluginhost discovery.

()

Source from the content-addressed store, hash-verified

83
84// CurrentPlatform reports the platform used by pluginhost discovery.
85func CurrentPlatform() Platform {
86 return Platform{
87 GOOS: runtime.GOOS,
88 GOARCH: runtime.GOARCH,
89 }
90}
91
92func NormalizePlatform(platform Platform) Platform {
93 goos := strings.ToLower(strings.TrimSpace(platform.GOOS))

Callers 4

SyncFunction · 0.85
SyncWithReportFunction · 0.85
DeleteWithReportFunction · 0.85
pluginFileInfosFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected