[SOLVED]: range over map does not show all values?


(David Kindler) #1

https://play.golang.org/p/dYChiTrgsNM

I am new to GoLang and am going through a tutorial. The code (link above) should show all values of a person struct. When I set the last name in the struct to be the same value it seems to stop and only show the last struct. If I change the value of one of the last names to be anything else the func works. Not sure what I am missing.
Any help would be appreciated!
Thanks,
David


(David Kindler) #2

Oops. Solved it. I was setting the identifier to the value, which were the same.