As in the slice in the html template to verify that the element is equal to something in GOLANG?

Let's say I give in HTML template slice of strings S, how can I display only non blank lines?
For example,
{{range .S}}
 {{if ????}}
 Display {{ .}}
{{end}}
{{end}}
April 19th 20 at 12:01
1 answer
April 19th 20 at 12:03
pass non-empty

Find more questions by tags Template buildersGo