package main
import \"fmt\"
func main(){
sample := map[string]string{
\"key1\":\"value1\",
\"key2\":\"value2\",
\"key3\":\"value3\",
}
for
As I understand that you should not depend on the order of the iterator for the map, since it has no logical ordering.
That aside, I believe that Go's implementation for map iteration is intentionally random (http://nathanleclaire.com/blog/2014/04/27/a-surprising-feature-of-golang-that-colored-me-impressed/ and http://www.confreaks.com/videos/3419-gophercon2014-opening-day-keynote) that is to discourage people from relying on it in their code.
I hope that helps.