title: Golang - HTML Templating - Range limit
body: <p>I have a slice which I am printing to an html file in go:</p>
  
  <pre><code>&lt;ul&gt;
  {{range .arr}}
      &lt;li&gt;{{.}}&lt;/li&gt;
  {{end}}
  &lt;/ul&gt;
  </code></pre>
  
  <p>If <code>len(arr) &gt; 5</code>, how do I print only the first 5 elements of the slice?</p>