()
| 313 | } |
| 314 | |
| 315 | func goos() string { |
| 316 | switch runtime.GOOS { |
| 317 | case "darwin": |
| 318 | return "darwin" |
| 319 | case "linux": |
| 320 | return "linux" |
| 321 | case "windows": |
| 322 | return "windows" |
| 323 | default: |
| 324 | return runtime.GOOS |
| 325 | } |
| 326 | } |
| 327 | |
| 328 | func goarch() string { |
| 329 | switch runtime.GOARCH { |