title: How to truncate a string in a Golang template
body: <p>In golang, is there a way to truncate text in an html template?</p>
  
  <p>For example, I have the following in my template:</p>
  
  <pre><code>{{ range .SomeContent }}
   ....
      {{ .Content }}
   ....
  
  {{ end }
  </code></pre>
  
  <p><code>{{ .Content }}</code> produces: Interdum et malesuada fames ac ante ipsum primis in faucibus. Aliquam tempus sem ipsum, vel accumsan felis vulputate id. Donec ultricies sem purus, non aliquam orci dignissim et. Integer vitae mi arcu. Pellentesque a ipsum quis velit venenatis vulputate vulputate ut enim.</p>
  
  <p>I would like to reduce that to 25 characters.</p>