{"action":"created","issue":{"url":"https://api.github.com/repos/hexdigest/gowrap/issues/6","repository_url":"https://api.github.com/repos/hexdigest/gowrap","labels_url":"https://api.github.com/repos/hexdigest/gowrap/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/hexdigest/gowrap/issues/6/comments","events_url":"https://api.github.com/repos/hexdigest/gowrap/issues/6/events","html_url":"https://github.com/hexdigest/gowrap/issues/6","id":376766518,"node_id":"MDU6SXNzdWUzNzY3NjY1MTg=","number":6,"title":"Reason for errUnexportableType error","user":{"login":"sjames-iberis","id":5041614,"node_id":"MDQ6VXNlcjUwNDE2MTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/5041614?v=4","gravatar_id":"","url":"https://api.github.com/users/sjames-iberis","html_url":"https://github.com/sjames-iberis","followers_url":"https://api.github.com/users/sjames-iberis/followers","following_url":"https://api.github.com/users/sjames-iberis/following{/other_user}","gists_url":"https://api.github.com/users/sjames-iberis/gists{/gist_id}","starred_url":"https://api.github.com/users/sjames-iberis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjames-iberis/subscriptions","organizations_url":"https://api.github.com/users/sjames-iberis/orgs","repos_url":"https://api.github.com/users/sjames-iberis/repos","events_url":"https://api.github.com/users/sjames-iberis/events{/privacy}","received_events_url":"https://api.github.com/users/sjames-iberis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-02T11:07:59Z","updated_at":"2018-11-02T21:53:09Z","closed_at":null,"author_association":"NONE","body":"I am curious to know why the use of an unexported type should abort decorator generation (line 138 of printer.go).\r\n\r\nI want to generate decorators for an interface that is only used in the context of the package in which it is defined, but this error blocks me from doing that.\r\n\r\nIf I comment out the check, everything is generated as I need."},"comment":{"url":"https://api.github.com/repos/hexdigest/gowrap/issues/comments/435520380","html_url":"https://github.com/hexdigest/gowrap/issues/6#issuecomment-435520380","issue_url":"https://api.github.com/repos/hexdigest/gowrap/issues/6","id":435520380,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTUyMDM4MA==","user":{"login":"sjames-iberis","id":5041614,"node_id":"MDQ6VXNlcjUwNDE2MTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/5041614?v=4","gravatar_id":"","url":"https://api.github.com/users/sjames-iberis","html_url":"https://github.com/sjames-iberis","followers_url":"https://api.github.com/users/sjames-iberis/followers","following_url":"https://api.github.com/users/sjames-iberis/following{/other_user}","gists_url":"https://api.github.com/users/sjames-iberis/gists{/gist_id}","starred_url":"https://api.github.com/users/sjames-iberis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjames-iberis/subscriptions","organizations_url":"https://api.github.com/users/sjames-iberis/orgs","repos_url":"https://api.github.com/users/sjames-iberis/repos","events_url":"https://api.github.com/users/sjames-iberis/events{/privacy}","received_events_url":"https://api.github.com/users/sjames-iberis/received_events","type":"User","site_admin":false},"created_at":"2018-11-02T21:53:09Z","updated_at":"2018-11-02T21:53:09Z","author_association":"NONE","body":"Sorry, I don't understand. I have the trivial source service.go:\r\n```\r\npackage egp\r\ntype Service interface {\r\n\tMethod(request reportRequest) \r\n}\r\n\r\ntype reportRequest struct {\r\n\tfield string \r\n}\r\n```\r\n\r\nI invoke gowrap with:\r\n```\r\n gowrap gen -d egp  -i Service -t custtmp -o egp/out.go\r\n```\r\nand get the result:\r\n```\r\nfailed to parse interface declaration: reportRequest: unexportable type\r\n```\r\nThe destination .go file is in the same package as the interface, but I still see the error."}}
{"actor":{"display_login":"sjames-iberis"}}