title: How to range array in golang to not randomize predetermined key?
body: <p>I have a trouble with my current golang's project.</p>
  
  <p>I have another package in go that result an array with pretedermined key, example :</p>
  
  <pre><code>package updaters
  
  var CustomSql map[string]string
  
  func InitSqlUpdater() {
      CustomSql = map[string]string{
          "ShouldBeFirst": "Text Should Be First",
          "ShouldBeSecond": "Text Should Be Second",
          "ShouldBeThird": "Text Should Be Third",
          "ShouldBeFourth": "Text Should Be Fourth"
     }
  }
  </code></pre>
  
  <p>And send it to main.go, to iterate each index and value, but the results is random (In my situation, I need that in sequence).</p>
  
  <p>Real Case : <a href="https://play.golang.org/p/ONXEiAj-Q4v" rel="nofollow noreferrer">https://play.golang.org/p/ONXEiAj-Q4v</a></p>
  
  <p>I google why the golangs iterate in random way, and the example is using sort, but my array keys is predetermined, and sort is only for asc desc alphabet and number.</p>
  
  <p>So, How can I achieve the way that arrays is not being randomize in iterate?</p>
  
  <pre><code>ShouldBeFirst = Text Should Be First
  ShouldBeSecond = Text Should Be Second
  ShouldBeThird = Text Should Be Third
  ShouldBeFourth = Text Should Be Fourth
  </code></pre>
  
  <p>Anyhelp will appreciate, thanks.</p>