(runtimeGOOS string, runtimeGOARCH string)
| 1 | package generic |
| 2 | |
| 3 | func GeneratePlatform(runtimeGOOS string, runtimeGOARCH string) string { |
| 4 | switch { |
| 5 | case runtimeGOOS == "linux" && runtimeGOARCH == "amd64": |
| 6 | return "linux64" |
| 7 | case runtimeGOOS == "linux" && runtimeGOARCH == "386": |
| 8 | return "linux32" |
| 9 | case runtimeGOOS == "windows" && runtimeGOARCH == "amd64": |
| 10 | return "win64" |
| 11 | case runtimeGOOS == "windows" && runtimeGOARCH == "386": |
| 12 | return "win32" |
| 13 | case runtimeGOOS == "darwin": |
| 14 | return "osx" |
| 15 | default: |
| 16 | return "" |
| 17 | } |
| 18 | } |
no outgoing calls
no test coverage detected