title: Why Golang cannot generate json from struct with front lowercase character?
body: <p>I am trying to print json result from struct I created as following:</p>
  
  <pre><code>type Machine struct {
    m_ip string
    m_type string
    m_serial string
  }
  </code></pre>
  
  <p>and print out</p>
  
  <pre><code>m:= &amp;Machine{ m_ip:"test", m_type:"test", m_serial:"test" }
  m_json:= json.Marshal(m)
  fmt.Println(m_json)
  </code></pre>
  
  <p>However, result returned just {} </p>
  
  <p>Secondly,I tried to changed the first letter of words to Uppercase as follow:</p>
  
  <pre><code>type Machine struct{
    MachIp string
    MachType string
    MachSerial string
  }
  </code></pre>
  
  <p>and it works! Why doesn't the word with lowercase character at the front work, anyway?</p>