MCPcopy
hub / github.com/wavetermdev/waveterm / normalizeArch

Function normalizeArch

pkg/wslconn/wsl-util.go:53–62  ·  view source on GitHub ↗
(arch string)

Source from the content-addressed store, hash-verified

51}
52
53func normalizeArch(arch string) string {
54 arch = strings.ToLower(strings.TrimSpace(arch))
55 switch arch {
56 case "x86_64", "amd64":
57 arch = "x64"
58 case "arm64", "aarch64":
59 arch = "arm64"
60 }
61 return arch
62}
63
64// returns (os, arch, error)
65// guaranteed to return a supported platform

Callers 2

GetClientPlatformFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected