How to get rid of ZgotmplZ from html/template in Golang?
<p>I'm using Golang in backend. When I render the html using html/templates I'm getting <code>ZgotmplZ</code> for URL's. </p>

<pre><code>{{if .UserData.GitURL}}
&lt;li&gt;
  &lt;a href="{{.UserData.GitURL}}"&gt;
    &lt;i class="icon fa fa-github"&gt;&lt;/i&gt;
  &lt;/a&gt;
&lt;/li&gt;
{{end}}
</code></pre>

<p>I'm using string for GitURL in server side. This URL is <code>https</code>. When I looked for solutions some blog suggested to use <code>safeURL</code>. So I tried,</p>

<pre><code>{{if .UserData.GitURL}}
&lt;li&gt;
  &lt;a href="{{.UserData.GitURL | safeURL}}"&gt;
    &lt;i class="icon fa fa-github"&gt;&lt;/i&gt;
  &lt;/a&gt;
&lt;/li&gt;
{{end}}
</code></pre>

<p>But code didn't compile. </p>

<p>Could someone help me with this? Any suggestion would be really helpful.</p>