{"action":"created","issue":{"url":"https://api.github.com/repos/flosch/pongo2/issues/75","labels_url":"https://api.github.com/repos/flosch/pongo2/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/flosch/pongo2/issues/75/comments","events_url":"https://api.github.com/repos/flosch/pongo2/issues/75/events","html_url":"https://github.com/flosch/pongo2/issues/75","id":55487769,"number":75,"title":"Can't use map[string]struct in template","user":{"login":"magicshui","id":330987,"avatar_url":"https://avatars.githubusercontent.com/u/330987?v=3","gravatar_id":"","url":"https://api.github.com/users/magicshui","html_url":"https://github.com/magicshui","followers_url":"https://api.github.com/users/magicshui/followers","following_url":"https://api.github.com/users/magicshui/following{/other_user}","gists_url":"https://api.github.com/users/magicshui/gists{/gist_id}","starred_url":"https://api.github.com/users/magicshui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magicshui/subscriptions","organizations_url":"https://api.github.com/users/magicshui/orgs","repos_url":"https://api.github.com/users/magicshui/repos","events_url":"https://api.github.com/users/magicshui/events{/privacy}","received_events_url":"https://api.github.com/users/magicshui/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-26T14:26:45Z","updated_at":"2015-01-26T14:51:30Z","closed_at":null,"body":"I have a data with this type:\r\n```go\r\ntype Data struct{\r\n...\r\n}\r\nvar datas := make(map[string]Data,0)\r\n...\r\n```\r\nand in the template,i want to access the data through it's id:\r\n```go\r\n{{datas[\"somename\"]}}\r\n```\r\nand got an error:\r\n```shell\r\nHandler crashed with error [Error (where: lexer) in views/sample.cfg | Line 36 Col 44] Unknown character: '[' (91)\r\n2015/01/26 12:43:13 [router.go:883] [C] /usr/src/go/src/runtime/asm_amd64.s:402\r\n2015/01/26 12:43:13 [router.go:883] [C] /usr/src/go/src/runtime/panic.go:387\r\n2015/01/26 12:43:13 [router.go:883] [C] /go/src/github.com/flosch/pongo2/pongo2.go:11\r\n```\r\n\r\n<bountysource-plugin>\r\n\r\n---\r\nWant to back this issue? **[Place a bounty on it!](https://www.bountysource.com/issues/8039590-can-t-use-map-string-struct-in-template?utm_campaign=plugin&utm_content=tracker%2F3654947&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F3654947&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/flosch/pongo2/issues/comments/71471725","html_url":"https://github.com/flosch/pongo2/issues/75#issuecomment-71471725","issue_url":"https://api.github.com/repos/flosch/pongo2/issues/75","id":71471725,"user":{"login":"flosch","id":19232,"avatar_url":"https://avatars.githubusercontent.com/u/19232?v=3","gravatar_id":"","url":"https://api.github.com/users/flosch","html_url":"https://github.com/flosch","followers_url":"https://api.github.com/users/flosch/followers","following_url":"https://api.github.com/users/flosch/following{/other_user}","gists_url":"https://api.github.com/users/flosch/gists{/gist_id}","starred_url":"https://api.github.com/users/flosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flosch/subscriptions","organizations_url":"https://api.github.com/users/flosch/orgs","repos_url":"https://api.github.com/users/flosch/repos","events_url":"https://api.github.com/users/flosch/events{/privacy}","received_events_url":"https://api.github.com/users/flosch/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T14:51:30Z","updated_at":"2015-01-26T14:51:30Z","body":"Try `datas.somename`."}}