MCPcopy Create free account
hub / github.com/archlinux-de/pkgstats-cli / GetArchitecture

Method GetArchitecture

internal/system/system_goos.go:9–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7)
8
9func (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
20func (s *System) GetOSId() (string, error) {
21 return runtime.GOOS, nil

Callers 7

validateSubmitRequestFunction · 0.95
TestShowArchitectureFunction · 0.95
TestShowOsArchitectureFunction · 0.95
newArchitectureCmdFunction · 0.95
newOsArchitectureCmdFunction · 0.95
createPacmanConfFunction · 0.95

Calls

no outgoing calls

Tested by 5

validateSubmitRequestFunction · 0.76
TestShowArchitectureFunction · 0.76
TestShowOsArchitectureFunction · 0.76
createPacmanConfFunction · 0.76