{"action":"created","issue":{"url":"https://api.github.com/repos/vektra/mockery/issues/41","labels_url":"https://api.github.com/repos/vektra/mockery/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/vektra/mockery/issues/41/comments","events_url":"https://api.github.com/repos/vektra/mockery/issues/41/events","html_url":"https://github.com/vektra/mockery/issues/41","id":102686275,"number":41,"title":"Refactor code to use go/types instead of go/ast","user":{"login":"ernesto-jimenez","id":1005,"avatar_url":"https://avatars.githubusercontent.com/u/1005?v=3","gravatar_id":"","url":"https://api.github.com/users/ernesto-jimenez","html_url":"https://github.com/ernesto-jimenez","followers_url":"https://api.github.com/users/ernesto-jimenez/followers","following_url":"https://api.github.com/users/ernesto-jimenez/following{/other_user}","gists_url":"https://api.github.com/users/ernesto-jimenez/gists{/gist_id}","starred_url":"https://api.github.com/users/ernesto-jimenez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ernesto-jimenez/subscriptions","organizations_url":"https://api.github.com/users/ernesto-jimenez/orgs","repos_url":"https://api.github.com/users/ernesto-jimenez/repos","events_url":"https://api.github.com/users/ernesto-jimenez/events{/privacy}","received_events_url":"https://api.github.com/users/ernesto-jimenez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-24T02:06:17Z","updated_at":"2015-10-29T05:38:17Z","closed_at":null,"body":"On issue #18 I mentioned that Go 1.5's `go/types` package I stated that the change should allow simplifying the codebase.\r\n\r\nI wanted to see how much work it would mean so I [did a quick implementation from scratch using `go/types`](http://github.com/ernesto-jimenez/mockery).\r\n\r\nThe implementation results in ~24% less and the following bugs are fixed: #18 #19 #40 \r\n\r\n```\r\n% wc -l $(ls **/*.go | grep -v _test | grep -v fixtures)\r\n      57 main.go\r\n     174 mockery/generator.go\r\n      99 mockery/importer.go\r\n      40 mockery/imports.go\r\n      39 mockery/method.go\r\n     409 total\r\n% wc -l $(ls **/*.go | grep -v _test | grep -v fixtures)\r\n     197 cmd/mockery/mockery.go\r\n       4 doc.go\r\n     254 mockery/generator.go\r\n      81 mockery/parse.go\r\n     536 total\r\n```"},"comment":{"url":"https://api.github.com/repos/vektra/mockery/issues/comments/152082107","html_url":"https://github.com/vektra/mockery/issues/41#issuecomment-152082107","issue_url":"https://api.github.com/repos/vektra/mockery/issues/41","id":152082107,"user":{"login":"IvanMalison","id":1246619,"avatar_url":"https://avatars.githubusercontent.com/u/1246619?v=3","gravatar_id":"","url":"https://api.github.com/users/IvanMalison","html_url":"https://github.com/IvanMalison","followers_url":"https://api.github.com/users/IvanMalison/followers","following_url":"https://api.github.com/users/IvanMalison/following{/other_user}","gists_url":"https://api.github.com/users/IvanMalison/gists{/gist_id}","starred_url":"https://api.github.com/users/IvanMalison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IvanMalison/subscriptions","organizations_url":"https://api.github.com/users/IvanMalison/orgs","repos_url":"https://api.github.com/users/IvanMalison/repos","events_url":"https://api.github.com/users/IvanMalison/events{/privacy}","received_events_url":"https://api.github.com/users/IvanMalison/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T05:38:17Z","updated_at":"2015-10-29T05:38:17Z","body":"@ernesto-jimenez 's suggestion to release binaries seems good to me..."}}