{"action":"created","issue":{"url":"https://api.github.com/repos/smartystreets/mafsa/issues/7","repository_url":"https://api.github.com/repos/smartystreets/mafsa","labels_url":"https://api.github.com/repos/smartystreets/mafsa/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/smartystreets/mafsa/issues/7/comments","events_url":"https://api.github.com/repos/smartystreets/mafsa/issues/7/events","html_url":"https://github.com/smartystreets/mafsa/pull/7","id":138565165,"number":7,"title":"Add ReadFrom and WriteTo methods","user":{"login":"Shugyousha","id":500068,"avatar_url":"https://avatars.githubusercontent.com/u/500068?v=3","gravatar_id":"","url":"https://api.github.com/users/Shugyousha","html_url":"https://github.com/Shugyousha","followers_url":"https://api.github.com/users/Shugyousha/followers","following_url":"https://api.github.com/users/Shugyousha/following{/other_user}","gists_url":"https://api.github.com/users/Shugyousha/gists{/gist_id}","starred_url":"https://api.github.com/users/Shugyousha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shugyousha/subscriptions","organizations_url":"https://api.github.com/users/Shugyousha/orgs","repos_url":"https://api.github.com/users/Shugyousha/repos","events_url":"https://api.github.com/users/Shugyousha/events{/privacy}","received_events_url":"https://api.github.com/users/Shugyousha/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-04T19:33:37Z","updated_at":"2016-03-11T08:40:27Z","closed_at":"2016-03-10T17:44:17Z","pull_request":{"url":"https://api.github.com/repos/smartystreets/mafsa/pulls/7","html_url":"https://github.com/smartystreets/mafsa/pull/7","diff_url":"https://github.com/smartystreets/mafsa/pull/7.diff","patch_url":"https://github.com/smartystreets/mafsa/pull/7.patch"},"body":"These operate on the io.Writer/io.Reader interfaces which should make them\r\nmore widely applicable. We also change the Load function to use ReadFrom."},"comment":{"url":"https://api.github.com/repos/smartystreets/mafsa/issues/comments/195258865","html_url":"https://github.com/smartystreets/mafsa/pull/7#issuecomment-195258865","issue_url":"https://api.github.com/repos/smartystreets/mafsa/issues/7","id":195258865,"user":{"login":"Shugyousha","id":500068,"avatar_url":"https://avatars.githubusercontent.com/u/500068?v=3","gravatar_id":"","url":"https://api.github.com/users/Shugyousha","html_url":"https://github.com/Shugyousha","followers_url":"https://api.github.com/users/Shugyousha/followers","following_url":"https://api.github.com/users/Shugyousha/following{/other_user}","gists_url":"https://api.github.com/users/Shugyousha/gists{/gist_id}","starred_url":"https://api.github.com/users/Shugyousha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shugyousha/subscriptions","organizations_url":"https://api.github.com/users/Shugyousha/orgs","repos_url":"https://api.github.com/users/Shugyousha/repos","events_url":"https://api.github.com/users/Shugyousha/events{/privacy}","received_events_url":"https://api.github.com/users/Shugyousha/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T08:40:27Z","updated_at":"2016-03-11T08:40:27Z","body":"On Thu, Mar 10, 2016 at 7:46 PM, Dmitri Shuralyov\n<notifications@github.com> wrote:\n> Is this related to #4?\n\nIt is related insofar that these methods make use of the\nio.Reader/io.Writer interfaces. The way they do it is different\nthough.\n\nThe NewDecoder/NewEncoder functions of the xml/json/other packages\ncreate an Encoder/Decoder using an io.Reader/io.Writer. Afterwards\nthey use their Encode/Decode functions to serialize or deserialize a\ntype to the underlying Reader/Writer.\n\nThe functions here just allow you to pass any io.Reader/io.Writer for\noutput/input without making the Decoder/Encoder struct creation depend\non the Writer/Reader interfaces.\n\nI would say that both approaches are functionally equivalent but it is\ntrue that the pattern of the encoding/xml etc. packages are more\nfamiliar. If you want me to I can try to implement the more familiar\npattern (shouldn't be hard).\n"}}