title: Is there an efficient way to concatenate strings
body: <p>For example, there is a function like that:</p>
  
  <pre><code> func TestFunc(str string) string {
   return strings.Trim(str," ")
   }
  </code></pre>
  
  <p>It runs in the example below:</p>
  
  <pre><code> {{ $var := printf "%s%s" "x" "y" }}
   {{ TestFunc $var }}
  </code></pre>
  
  <p>Is there anyway to concatenate strings with operators in template ?</p>
  
  <pre><code> {{ $var := "y" }}
   {{ TestFunc "x" + $var }}
  </code></pre>
  
  <p>or</p>
  
  <pre><code> {{ $var := "y" }}
   {{ TestFunc "x" + {$var} }}
  </code></pre>
  
  <p>It gives unexpected "+" in operand error.</p>
  
  <p>I couldnt find it in documentation (<a href="https://golang.org/pkg/text/template/" rel="noreferrer">https://golang.org/pkg/text/template/</a>) </p>