title: range within range golang template
body: <p>How to access range within range in Go templates?</p>
  
  <p>Template:</p>
  
  <pre><code>{{range .Resume.Skills}}    
      {{.Name}}
      {{.Level}}
      {{range $item, $key := .Keywords}}
              {{$key}}
              {{$item}}
      {{end}}
  {{end}}
  </code></pre>
  
  <p>Struct:</p>
  
  <pre><code>type SkillsInfo struct {
      Name     string
      Level    string
      Keywords []KeywordsInfo
  }
  
  type KeywordsInfo struct {
      Keyword string
  }
  </code></pre>
  
  <p>result I can see is {}. How can I access Nested Objects in Templates? </p>
  
  <p>---Update--:</p>
  
  <pre><code>type ResumeJson struct {
      Basics       BasicsInfo
      Work         []WorkInfo
      Volunteer    []VolunteerInfo
      Education    []EducationInfo
      Awards       []AwardsInfo
      Publications []PublicationsInfo
      Skills       []SkillsInfo
      Languages    []LaunguagesInfo
      Interests    []InterestsInfo
      References   []ReferencesInfo
  }
  </code></pre>
  
  <p>Result seen now:</p>
  
  <p>Web Development Master {} 0 {} 1 {} 2</p>
  
  <p>ans JSON I parse:</p>
  
  <pre><code> "skills": [{
      "name": "Web Development",
      "level": "Master",
      "keywords": [
           "CSS", 
           "HTML",
        "Javascript"
      ]
    }],
  </code></pre>