github.com/pojntfx/hydrapp/hydrapp@v0.0.0-20240516002902-d08759d6ca9f/pkg/utils/arch.go (about) 1 package utils 2 3 // See https://github.com/pojntfx/bagop/blob/main/main.go#L45 4 func GetArchIdentifier(goArch string) string { 5 switch goArch { 6 case "386": 7 return "i686" 8 case "amd64": 9 return "x86_64" 10 case "arm": 11 return "armv7l" // Best effort, could also be `armv6l` etc. depending on `GOARCH` 12 case "arm64": 13 return "aarch64" 14 default: 15 return goArch 16 } 17 }