In Go, range copies values from the slice it's iterating over

range copies the values from the slice you’re iterating over”

https://stackoverflow.com/questions/15945030/change-values-while-iterating