How url use Html templates?

51 views
Skip to first unread message

Ali Hassan

unread,
May 14, 2020, 12:05:29 PM5/14/20
to golang-nuts

Html Templates
           {{if .Done}}
                 
<p {{ .Message}} </p>
                  <a "/
{{  .URL}}  /> </a>
           
{{end}}

            My question is this <a "/{{ .URL}}"> </a> , possible that Url have string value "/HelloQ/home/" which which show as url link option which you can open if you click on that link

Shulhan

unread,
May 14, 2020, 1:01:50 PM5/14/20
to Ali Hassan, golang-nuts
Yes, its possible, but you need to fix your anchor tag with a "href" attribute. I assume you already know that.

Ali Hassan

unread,
May 15, 2020, 4:42:22 AM5/15/20
to golang-nuts
Thank you
Reply all
Reply to author
Forward
0 new messages