title: Golang separating items with comma in template
body: <p>I am trying to display a list of comma separated values, and don't want to display a comma after the last item (or the only item if there is only one).</p>
  
  <p>My code so far:</p>
  
  <pre><code>Equipment:
      {{$equipment := .Equipment}}
      {{ range $index, $element := .Equipment}}
          {{$element.Name}}
          {{if lt $index ((len $equipment) -1)}}
              ,
          {{end}}
      {{end}}
  </code></pre>
  
  <p>The current output: <code>Equipment: Mat , Dumbbell ,</code>
  How do I get rid of the trailing comma</p>