I need to use a map in template, however, the syntax is not correct
<tr>
<td>India</td>
<td>{{$val.Agent.Imei}}</td>
<td>{{$val.Jid}}</td>
<td>{{.LoginTimeMap[$val.Jid]}}
</tr>
it saids the [] in {{.LoginTimeMap[$val.Jid]}} is unexpected bad character U+005B '[' in command
Please Help