How does this work,
in this code:
var all []\*Item
for _, item := range items {
all = append(all, &item)
}
When &item is the same for all iterations, that means that it's pointing to the same memory address. Is each item in items copied to this address prior to each iteration body invocation? This seems strange as this copy could potentially be very expensive. What am I missing?