{"action":"opened","issue":{"url":"https://api.github.com/repos/nickng/gospal/issues/1","repository_url":"https://api.github.com/repos/nickng/gospal","labels_url":"https://api.github.com/repos/nickng/gospal/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/nickng/gospal/issues/1/comments","events_url":"https://api.github.com/repos/nickng/gospal/issues/1/events","html_url":"https://github.com/nickng/gospal/issues/1","id":324345236,"number":1,"title":"Error in struct flattening","user":{"login":"milton19","id":21984710,"avatar_url":"https://avatars0.githubusercontent.com/u/21984710?v=4","gravatar_id":"","url":"https://api.github.com/users/milton19","html_url":"https://github.com/milton19","followers_url":"https://api.github.com/users/milton19/followers","following_url":"https://api.github.com/users/milton19/following{/other_user}","gists_url":"https://api.github.com/users/milton19/gists{/gist_id}","starred_url":"https://api.github.com/users/milton19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milton19/subscriptions","organizations_url":"https://api.github.com/users/milton19/orgs","repos_url":"https://api.github.com/users/milton19/repos","events_url":"https://api.github.com/users/milton19/events{/privacy}","received_events_url":"https://api.github.com/users/milton19/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-18T09:56:03Z","updated_at":"2018-05-18T09:56:03Z","closed_at":null,"author_association":"NONE","body":"In  the program [examplewithstruct.go](https://pastebin.com/KyTw7tbA) the channels are encapsulated in a struct which is passed as a pointer to the two goroutines. endChannel is used to signal to main that a goroutine is exiting and is not part of the struct.\r\n\r\n[examplewithstruct.cgo](https://pastebin.com/rWW8sqRk) contains the MiGo types extracted by migoinfer for examplewithstruct.go.\r\nI bring your attention to lines 11 and 12. In line 11, endChannel appears as the first argument in the function call, while in line 12 it appears as the last parameter. \r\n\r\n"}}
{"actor":{"display_login":"milton19"}}