{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/16504","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/16504/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/16504/comments","events_url":"https://api.github.com/repos/golang/go/issues/16504/events","html_url":"https://github.com/golang/go/issues/16504","id":167674239,"number":16504,"title":"proposal: compress: add Compress and Decompress convenience functions","user":{"login":"dsnet","id":6354026,"avatar_url":"https://avatars.githubusercontent.com/u/6354026?v=3","gravatar_id":"","url":"https://api.github.com/users/dsnet","html_url":"https://github.com/dsnet","followers_url":"https://api.github.com/users/dsnet/followers","following_url":"https://api.github.com/users/dsnet/following{/other_user}","gists_url":"https://api.github.com/users/dsnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dsnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsnet/subscriptions","organizations_url":"https://api.github.com/users/dsnet/orgs","repos_url":"https://api.github.com/users/dsnet/repos","events_url":"https://api.github.com/users/dsnet/events{/privacy}","received_events_url":"https://api.github.com/users/dsnet/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/golang/go/labels/Proposal","name":"Proposal","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-26T18:12:21Z","updated_at":"2016-07-26T20:38:59Z","closed_at":null,"body":"Filing on behalf of an internal user, who requests that we add convenience wrappers of Compress and Decompress:\r\n```go\r\nfunc Decompress(b []byte) ([]byte, error) {\r\n\trd, err := zlib.NewReader(bytes.NewReader(b))\r\n\tif err != nil {\r\n\t\treturn nil, err\r\n\t}\r\n\tdefer rd.Close()\r\n\treturn ioutil.ReadAll(rd)\r\n}\r\n```\r\n\r\nWhat are people's thoughts?\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/235397810","html_url":"https://github.com/golang/go/issues/16504#issuecomment-235397810","issue_url":"https://api.github.com/repos/golang/go/issues/16504","id":235397810,"user":{"login":"nhooyr","id":10180857,"avatar_url":"https://avatars.githubusercontent.com/u/10180857?v=3","gravatar_id":"","url":"https://api.github.com/users/nhooyr","html_url":"https://github.com/nhooyr","followers_url":"https://api.github.com/users/nhooyr/followers","following_url":"https://api.github.com/users/nhooyr/following{/other_user}","gists_url":"https://api.github.com/users/nhooyr/gists{/gist_id}","starred_url":"https://api.github.com/users/nhooyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhooyr/subscriptions","organizations_url":"https://api.github.com/users/nhooyr/orgs","repos_url":"https://api.github.com/users/nhooyr/repos","events_url":"https://api.github.com/users/nhooyr/events{/privacy}","received_events_url":"https://api.github.com/users/nhooyr/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T20:38:59Z","updated_at":"2016-07-26T20:38:59Z","body":"If we do this, we should use a `sync.Pool` for the readers."}}
{"actor":{"display_login":"nhooyr"}}