I want to use a query which looks like
rows:= db.Query("SELECT * FROM names")
var name string
for rows.Next() {
rows.Scan(&name)
}
//There should be a map
t.Execute(w,p)
I want to shape up this to list all names in template like
{{range .name}}
{{.}}
{{end}}
How can i exactly do that?