I render template:
w.Header().Set("Content-type", "text/html")
t, _ := template.ParseFiles("index.html")
t.Execute(w, &page{Title: "Title"})
Its works well. But what if, for example, I have structure from database?
How can I render it by Go? Any solutions?