Templates.ExecuteTemplate(w, "index.html", map[string]interface{} {
"Games": games})
}
Where games is []map[string]interface{}
(mapped result of sql query)
In template:
{{ range $gval := .Games }}
{{ how to make something like: $gval.name.(string) }}
{{end}}
How to cast interface{} value of map to string(or int) in template? In 'go' i can do
games[0]["name"].(string)
When i do $gval.name
it writes hex string