{"action":"created","issue":{"url":"https://api.github.com/repos/jteeuwen/go-bindata/issues/89","labels_url":"https://api.github.com/repos/jteeuwen/go-bindata/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/jteeuwen/go-bindata/issues/89/comments","events_url":"https://api.github.com/repos/jteeuwen/go-bindata/issues/89/events","html_url":"https://github.com/jteeuwen/go-bindata/issues/89","id":81462281,"number":89,"title":"Invalid Generated Go Code With Certain Filenames","user":{"login":"nadams","id":221703,"avatar_url":"https://avatars.githubusercontent.com/u/221703?v=3","gravatar_id":"","url":"https://api.github.com/users/nadams","html_url":"https://github.com/nadams","followers_url":"https://api.github.com/users/nadams/followers","following_url":"https://api.github.com/users/nadams/following{/other_user}","gists_url":"https://api.github.com/users/nadams/gists{/gist_id}","starred_url":"https://api.github.com/users/nadams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadams/subscriptions","organizations_url":"https://api.github.com/users/nadams/orgs","repos_url":"https://api.github.com/users/nadams/repos","events_url":"https://api.github.com/users/nadams/events{/privacy}","received_events_url":"https://api.github.com/users/nadams/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-27T14:07:51Z","updated_at":"2015-05-28T22:25:23Z","closed_at":null,"body":"Embedding files that start with a `.` generates invalid go code.\r\n\r\nA git bisect shows that the problem was introduced in commit dfcf23b04ef0cacd524a25ea18fbeede2d3bbcbb\r\n\r\nI'm pretty sure the issue was introduced with the pull request jteeuwen/go-bindata#86\r\nSpecifically, this line was removed: https://github.com/jteeuwen/go-bindata/commit/dfcf23b04ef0cacd524a25ea18fbeede2d3bbcbb#diff-76b9265a0c3cccec7fb95e6bde2f273aL204\r\n\r\nHere is some example output:\r\n> assets/assets.go:387: syntax error: unexpected ., expecting (\r\n> assets/assets.go:389: non-declaration statement outside function body\r\n> assets/assets.go:390: non-declaration statement outside function body\r\n> assets/assets.go:393: non-declaration statement outside function body\r\n> assets/assets.go:395: non-declaration statement outside function body\r\n> assets/assets.go:398: non-declaration statement outside function body\r\n> assets/assets.go:400: non-declaration statement outside function body\r\n> assets/assets.go:401: non-declaration statement outside function body\r\n> assets/assets.go:402: syntax error: unexpected }\r\n\r\nExample generated function name:\r\n```go\r\nfunc layoutsBase.ignore() (*asset, error) { ... }\r\n```\r\ngo-bindata 3.1.0 (Go runtime go1.4.2)."},"comment":{"url":"https://api.github.com/repos/jteeuwen/go-bindata/issues/comments/106617221","html_url":"https://github.com/jteeuwen/go-bindata/issues/89#issuecomment-106617221","issue_url":"https://api.github.com/repos/jteeuwen/go-bindata/issues/89","id":106617221,"user":{"login":"shurcooL","id":1924134,"avatar_url":"https://avatars.githubusercontent.com/u/1924134?v=3","gravatar_id":"","url":"https://api.github.com/users/shurcooL","html_url":"https://github.com/shurcooL","followers_url":"https://api.github.com/users/shurcooL/followers","following_url":"https://api.github.com/users/shurcooL/following{/other_user}","gists_url":"https://api.github.com/users/shurcooL/gists{/gist_id}","starred_url":"https://api.github.com/users/shurcooL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shurcooL/subscriptions","organizations_url":"https://api.github.com/users/shurcooL/orgs","repos_url":"https://api.github.com/users/shurcooL/repos","events_url":"https://api.github.com/users/shurcooL/events{/privacy}","received_events_url":"https://api.github.com/users/shurcooL/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T22:25:22Z","updated_at":"2015-05-28T22:25:22Z","body":"We are hitting this issue as well, and I am also suspecting it's a regression coming from #86."}}