func ConstraintArch(cons constraints.Value, defaultCons *constraints.Value) string {
	if cons.HasArch() {
		return *cons.Arch
	}
	if defaultCons != nil && defaultCons.HasArch() {
		return *defaultCons.Arch
	}
	return DefaultArchitecture
}
// ConstraintArch returns the arch for the constraint if there is one,
// else it returns the default arch.
ConstraintArch returns the arch for the constraint if there is one,
else it returns the default arch.
// ConstraintArch returns the arch for the constraint if there is one // else it returns the default arch .
func ConstraintArch(cons constraints.Value, defaultCons *constraints.Value) string {
	if cons.HasArch() {
		return *cons.Arch
	}
	if defaultCons != nil && defaultCons.HasArch() {
		return *defaultCons.Arch
	}
	return DefaultArchitecture
}
func ConstraintArch ( cons constraints . Value , defaultCons * constraints . Value ) string { if cons . HasArch ( ) { return * cons . Arch } if defaultCons != nil && defaultCons . HasArch ( ) { return * defaultCons . Arch } return DefaultArchitecture }
ConstraintArch returns the arch for the constraint if there is one,
else it returns the default arch.
ConstraintArch returns the arch for the constraint if there is one else it returns the default arch .