{"action":"created","issue":{"url":"https://api.github.com/repos/fteychene/logspout-logstash/issues/1","repository_url":"https://api.github.com/repos/fteychene/logspout-logstash","labels_url":"https://api.github.com/repos/fteychene/logspout-logstash/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/fteychene/logspout-logstash/issues/1/comments","events_url":"https://api.github.com/repos/fteychene/logspout-logstash/issues/1/events","html_url":"https://github.com/fteychene/logspout-logstash/issues/1","id":168960939,"number":1,"title":"code explanation","user":{"login":"rchicoli","id":10183963,"avatar_url":"https://avatars.githubusercontent.com/u/10183963?v=3","gravatar_id":"","url":"https://api.github.com/users/rchicoli","html_url":"https://github.com/rchicoli","followers_url":"https://api.github.com/users/rchicoli/followers","following_url":"https://api.github.com/users/rchicoli/following{/other_user}","gists_url":"https://api.github.com/users/rchicoli/gists{/gist_id}","starred_url":"https://api.github.com/users/rchicoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rchicoli/subscriptions","organizations_url":"https://api.github.com/users/rchicoli/orgs","repos_url":"https://api.github.com/users/rchicoli/repos","events_url":"https://api.github.com/users/rchicoli/events{/privacy}","received_events_url":"https://api.github.com/users/rchicoli/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-02T18:55:07Z","updated_at":"2016-08-03T07:57:14Z","closed_at":"2016-08-03T07:45:56Z","body":"Hey @fteychene\r\n\r\nI've been learning golang since past months and came up with some exclamation marks after looking at your code changes.\r\nI would be grateful if you could explain me how this works, because I was planning to rewrite it an publish to the main repository.\r\n\r\nIt is still confusing for me when using pointers and references. How does the assertion works on following function?\r\n\r\n```golang\r\nfunc runCollapseChannel(channel chan LogstashMessage, sendMessage func(message LogstashMessage)) {\r\n\tvar collapse *LogstashMessage\r\n.\r\n.\r\n\t\tcase collapse != nil && log.Type == (*collapse).Type:\r\n```\r\n\r\nThanks in advanced"},"comment":{"url":"https://api.github.com/repos/fteychene/logspout-logstash/issues/comments/237169231","html_url":"https://github.com/fteychene/logspout-logstash/issues/1#issuecomment-237169231","issue_url":"https://api.github.com/repos/fteychene/logspout-logstash/issues/1","id":237169231,"user":{"login":"fteychene","id":1640465,"avatar_url":"https://avatars.githubusercontent.com/u/1640465?v=3","gravatar_id":"","url":"https://api.github.com/users/fteychene","html_url":"https://github.com/fteychene","followers_url":"https://api.github.com/users/fteychene/followers","following_url":"https://api.github.com/users/fteychene/following{/other_user}","gists_url":"https://api.github.com/users/fteychene/gists{/gist_id}","starred_url":"https://api.github.com/users/fteychene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fteychene/subscriptions","organizations_url":"https://api.github.com/users/fteychene/orgs","repos_url":"https://api.github.com/users/fteychene/repos","events_url":"https://api.github.com/users/fteychene/events{/privacy}","received_events_url":"https://api.github.com/users/fteychene/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T07:57:14Z","updated_at":"2016-08-03T07:57:14Z","body":"For this assertion,  the purpose is to validate that a previous message exists `collapse != nil` and that the property type of the pointed value is equals to log.Type.\r\n\r\nThe first assertion is just to avoid error on the real check if the pointer doesn't reference any value.\r\n"}}
{"actor":{"display_login":"fteychene"}}