Passing a pointer inside a loop with anonymous go functions causes only last element pointer to be used

So in the following code I'm passing pointers to anonymous go functions but the code is not behaving as I am expecting it to do. package main import "fmt" type ( Element struct{ Name