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