title: Foreach from map go
body: <p>I have a little question for you all!</p>
  
  <p>How foreach each element in json file?</p>
  
  <p>json:</p>
  
  <pre><code>{
    "keywords": "keywords1",
    "social": [
      {"url": "test1", "title": "test1"},
      {"url": "test2", "title": "test2"}
    ]
  }
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>package main
  
  import (
      "fmt"
      "encoding/json"
      "io/ioutil"
  )
  
  func main() {
      configFile, _ := ioutil.ReadFile("config.json")
      json.Unmarshal(configFile, &amp;person)
  
      // foreach["social"]
  }
  </code></pre>