12 lines
169 B
Go
12 lines
169 B
Go
package db
|
|
|
|
import "slices"
|
|
|
|
func ArchIsSupported(alpmArch []string, arch string) bool {
|
|
if arch == "any" {
|
|
return true
|
|
}
|
|
|
|
return slices.Contains(alpmArch, arch)
|
|
}
|