{"action":"created","issue":{"url":"https://api.github.com/repos/digitalocean/go-qemu/issues/135","repository_url":"https://api.github.com/repos/digitalocean/go-qemu","labels_url":"https://api.github.com/repos/digitalocean/go-qemu/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/digitalocean/go-qemu/issues/135/comments","events_url":"https://api.github.com/repos/digitalocean/go-qemu/issues/135/events","html_url":"https://github.com/digitalocean/go-qemu/pull/135","id":184110562,"number":135,"title":"internal/qmp-gen: generate implementations for events.","user":{"login":"danderson","id":1918,"avatar_url":"https://avatars.githubusercontent.com/u/1918?v=3","gravatar_id":"","url":"https://api.github.com/users/danderson","html_url":"https://github.com/danderson","followers_url":"https://api.github.com/users/danderson/followers","following_url":"https://api.github.com/users/danderson/following{/other_user}","gists_url":"https://api.github.com/users/danderson/gists{/gist_id}","starred_url":"https://api.github.com/users/danderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danderson/subscriptions","organizations_url":"https://api.github.com/users/danderson/orgs","repos_url":"https://api.github.com/users/danderson/repos","events_url":"https://api.github.com/users/danderson/events{/privacy}","received_events_url":"https://api.github.com/users/danderson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-20T00:53:56Z","updated_at":"2016-10-25T02:33:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/digitalocean/go-qemu/pulls/135","html_url":"https://github.com/digitalocean/go-qemu/pull/135","diff_url":"https://github.com/digitalocean/go-qemu/pull/135.diff","patch_url":"https://github.com/digitalocean/go-qemu/pull/135.patch"},"body":"So, for events, the current API in package qmp isn't great - it deserializes the event into map[string]interface{}, which means I have to re-serialize it so that I can json.Unmarshal out into the correct type.\r\n\r\nIf you have ideas on how to make this nicer, I'd love to hear it. The only things I can come up with involves stuffing some autogen'd types into the qmp package, and decoding the events to structs directly."},"comment":{"url":"https://api.github.com/repos/digitalocean/go-qemu/issues/comments/255919844","html_url":"https://github.com/digitalocean/go-qemu/pull/135#issuecomment-255919844","issue_url":"https://api.github.com/repos/digitalocean/go-qemu/issues/135","id":255919844,"user":{"login":"danderson","id":1918,"avatar_url":"https://avatars.githubusercontent.com/u/1918?v=3","gravatar_id":"","url":"https://api.github.com/users/danderson","html_url":"https://github.com/danderson","followers_url":"https://api.github.com/users/danderson/followers","following_url":"https://api.github.com/users/danderson/following{/other_user}","gists_url":"https://api.github.com/users/danderson/gists{/gist_id}","starred_url":"https://api.github.com/users/danderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danderson/subscriptions","organizations_url":"https://api.github.com/users/danderson/orgs","repos_url":"https://api.github.com/users/danderson/repos","events_url":"https://api.github.com/users/danderson/events{/privacy}","received_events_url":"https://api.github.com/users/danderson/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T02:33:22Z","updated_at":"2016-10-25T02:33:22Z","body":"Could you describe what you mean by making qmp.Event an interface with more words? I'm not seeing how this would make things prettier/easier, I think I'm missing something obvious."}}
{"actor":{"display_login":"danderson"}}