title: How to print the value of a key containing dots
body: <p>I'm trying to print the values of a map, whose keys have a dot (<code>.</code>) on it.</p>
  
  <p>Example map:</p>
  
  <pre><code>type TemplateData struct {
      Data map[string] int
  }
  tpldata := TemplateData{map[string]int {"core.value": 1}}
  </code></pre>
  
  <p>I've tried:</p>
  
  <pre><code>{{ $key := "core.value" }}
  {{ .Data.key }}
  </code></pre>
  
  <p>but got:</p>
  
  <pre><code>2014/06/17 16:46:17 http: panic serving [::1]:41395: template: template.html:13: bad character U+0024 '$'
  </code></pre>
  
  <p>and </p>
  
  <pre><code>{{ .Data."core.value" }}
  </code></pre>
  
  <p>but got:</p>
  
  <pre><code>2014/06/17 16:45:07 http: panic serving [::1]:41393: template: template.html:12: bad character U+0022 '"'
  </code></pre>
  
  <p>Note that I'm able to successfully print the value of keys without dots.</p>