MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / normalizeArch

Function normalizeArch

pkg/remote/connutil.go:47–56  ·  view source on GitHub ↗
(arch string)

Source from the content-addressed store, hash-verified

45}
46
47func normalizeArch(arch string) string {
48 arch = strings.ToLower(strings.TrimSpace(arch))
49 switch arch {
50 case "x86_64", "amd64":
51 arch = "x64"
52 case "arm64", "aarch64":
53 arch = "arm64"
54 }
55 return arch
56}
57
58// returns (os, arch, error)
59// guaranteed to return a supported platform

Callers 2

GetClientPlatformFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected