// Go has no built-in zip — use an index loop insteadnames:=[]string{"alice","bob"}scores:=[]int{90,85}fori:=0;i<len(names)&&i<len(scores);i++{fmt.Printf("%s: %d\n",names[i],scores[i])}
range copies the value
for _, v := range slice gives you a copy of each element. Modifying v does not
affect the original slice. Use the index to modify in place:
fori:=rangeitems{items[i].Count++// modifies the original element}