()
| 7 | ) |
| 8 | |
| 9 | func (s *System) GetArchitecture() (string, error) { |
| 10 | switch runtime.GOARCH { |
| 11 | case "amd64": |
| 12 | return X86_64, nil |
| 13 | case "arm64": |
| 14 | return AARCH64, nil |
| 15 | default: |
| 16 | return runtime.GOARCH, nil |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | func (s *System) GetOSId() (string, error) { |
| 21 | return runtime.GOOS, nil |
no outgoing calls