title: Error with JSON parsing in Golang
body: <p>I develop this code:</p>
  
  <pre><code>package main
  import (
      "fmt"
      "io/ioutil"
      "encoding/json"
  )
  
  type Client struct{
      host string
      key string
      secrete string
      username string
      password string
  }
  
  type Config struct{
      Client []Client
  }
  
  func main(){
      content, err := ioutil.ReadFile("conf2.json")
      if err!=nil{
          fmt.Print("Error:",err)
      }
      var conf Config
      err=json.Unmarshal(content, &amp;conf)
      if err!=nil{
          fmt.Print("Error:",err)
      }
      json.Unmarshal(content, &amp;conf)
      fmt.Println(conf.Client[0].host)
  }
  </code></pre>
  
  <p>to parse and print the first host detail from my json, that looks like this:</p>
  
  <blockquote>
    <p>{
          "Client" :
          [
              {"host":"192.168.1.2"},<br>
              {"key":"abcdf"},
              {"secrete":"9F6w"},
              {"username":"user"},
              {"password":"password"}
          ]
        }</p>
  </blockquote>
  
  <p>But I got an empty string. Could someone know the reason?</p>