{"action":"created","issue":{"url":"https://api.github.com/repos/kataras/iris/issues/167","repository_url":"https://api.github.com/repos/kataras/iris","labels_url":"https://api.github.com/repos/kataras/iris/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/kataras/iris/issues/167/comments","events_url":"https://api.github.com/repos/kataras/iris/issues/167/events","html_url":"https://github.com/kataras/iris/issues/167","id":158163259,"number":167,"title":"v3.0.0-beta.1 Config Panic","user":{"login":"ryanbyyc","id":2421110,"avatar_url":"https://avatars.githubusercontent.com/u/2421110?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanbyyc","html_url":"https://github.com/ryanbyyc","followers_url":"https://api.github.com/users/ryanbyyc/followers","following_url":"https://api.github.com/users/ryanbyyc/following{/other_user}","gists_url":"https://api.github.com/users/ryanbyyc/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanbyyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanbyyc/subscriptions","organizations_url":"https://api.github.com/users/ryanbyyc/orgs","repos_url":"https://api.github.com/users/ryanbyyc/repos","events_url":"https://api.github.com/users/ryanbyyc/events{/privacy}","received_events_url":"https://api.github.com/users/ryanbyyc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kataras/iris/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-02T15:02:00Z","updated_at":"2016-06-02T15:27:49Z","closed_at":"2016-06-02T15:27:49Z","body":"```language:go\r\nfunc main() {\r\n    cfg := config.Iris{Profile: true, DisablePathCorrection: true}\r\n    api := iris.New(cfg)\r\n    api.Listen(\":8080\")\r\n}\r\n```\r\n\r\n```\r\npanic: assignment to entry in nil map\r\n\r\ngoroutine 1 [running]:\r\npanic(0x561c20, 0xc820209790)\r\n    /usr/local/Cellar/go/1.6.2/libexec/src/runtime/panic.go:481 +0x3e6\r\ngithub.com/kataras/iris.(*Iris).initTemplates(0xc82021e400)\r\n    /Users/ryan/Go/src/github.com/kataras/iris/iris.go:140 +0x2ca\r\ngithub.com/kataras/iris.(*Iris).PostListen(0xc82021e400)\r\n    /Users/ryan/Go/src/github.com/kataras/iris/iris.go:243 +0x10b\r\ngithub.com/kataras/iris.(*Iris).listen(0xc82021e400, 0x74d958, 0x5, 0x0, 0x0, 0x0, 0x0, 0xc800000000, 0x0, 0x0)\r\n    /Users/ryan/Go/src/github.com/kataras/iris/iris.go:264 +0xc3\r\ngithub.com/kataras/iris.(*Iris).ListenWithErr(0xc82021e400, 0x74d958, 0x5, 0x0, 0x0)\r\n    /Users/ryan/Go/src/github.com/kataras/iris/iris.go:282 +0x9b\r\ngithub.com/kataras/iris.(*Iris).Listen(0xc82021e400, 0x74d958, 0x5)\r\n    /Users/ryan/Go/src/github.com/kataras/iris/iris.go:292 +0x35\r\nmain.main()\r\n    /app/web/main.go:12 +0xfe\r\nexit status 2\r\n```\r\n\r\nEventually I traced it down to an issue with DefaultConfigs.\r\n```language:go\r\n\tcfg.Render.Template.HTMLTemplate = config.HTMLTemplate{\r\n// ...\r\n\t}\r\n```\r\n\r\nNow I can get around this with something like:\r\n```go\r\n\tcfg.Render.Template.HTMLTemplate.Left = \"{{\"\r\n\t// ...\r\n```\r\n\r\nBut I shouldn't need to. \r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/34804029-v3-0-0-beta-1-config-panic?utm_campaign=plugin&utm_content=tracker%2F30189074&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F30189074&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/kataras/iris/issues/comments/223327627","html_url":"https://github.com/kataras/iris/issues/167#issuecomment-223327627","issue_url":"https://api.github.com/repos/kataras/iris/issues/167","id":223327627,"user":{"login":"kataras","id":2321588,"avatar_url":"https://avatars.githubusercontent.com/u/2321588?v=3","gravatar_id":"","url":"https://api.github.com/users/kataras","html_url":"https://github.com/kataras","followers_url":"https://api.github.com/users/kataras/followers","following_url":"https://api.github.com/users/kataras/following{/other_user}","gists_url":"https://api.github.com/users/kataras/gists{/gist_id}","starred_url":"https://api.github.com/users/kataras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kataras/subscriptions","organizations_url":"https://api.github.com/users/kataras/orgs","repos_url":"https://api.github.com/users/kataras/repos","events_url":"https://api.github.com/users/kataras/events{/privacy}","received_events_url":"https://api.github.com/users/kataras/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T15:27:48Z","updated_at":"2016-06-02T15:27:48Z","body":"@ryanbyyc  fixed "}}
{"actor":{"display_login":"kataras"}}