title: How to through struct's fieldName get value
body: <pre><code>type mcat struct {
      ID int
  }
  type cat struct {
      Name string
      M    mcat
  }
  
  func getValue(path string, mcat cat){
      //throuth struct path get the value
  }
  
  func main(){
      mycat := cat{"cat", mcat{1}}
      id := getvalue("/M/ID", mycat)
  }
  </code></pre>
  
  <p>Can I do this by reflecting to get a value based on the field name?</p>