{"action":"opened","issue":{"url":"https://api.github.com/repos/golang/go/issues/11625","labels_url":"https://api.github.com/repos/golang/go/issues/11625/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/11625/comments","events_url":"https://api.github.com/repos/golang/go/issues/11625/events","html_url":"https://github.com/golang/go/issues/11625","id":93653617,"number":11625,"title":"os/user: Cache the result of user.Current","user":{"login":"dsymonds","id":31506,"avatar_url":"https://avatars.githubusercontent.com/u/31506?v=3","gravatar_id":"","url":"https://api.github.com/users/dsymonds","html_url":"https://github.com/dsymonds","followers_url":"https://api.github.com/users/dsymonds/followers","following_url":"https://api.github.com/users/dsymonds/following{/other_user}","gists_url":"https://api.github.com/users/dsymonds/gists{/gist_id}","starred_url":"https://api.github.com/users/dsymonds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsymonds/subscriptions","organizations_url":"https://api.github.com/users/dsymonds/orgs","repos_url":"https://api.github.com/users/dsymonds/repos","events_url":"https://api.github.com/users/dsymonds/events{/privacy}","received_events_url":"https://api.github.com/users/dsymonds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Sajmani","id":9734877,"avatar_url":"https://avatars.githubusercontent.com/u/9734877?v=3","gravatar_id":"","url":"https://api.github.com/users/Sajmani","html_url":"https://github.com/Sajmani","followers_url":"https://api.github.com/users/Sajmani/followers","following_url":"https://api.github.com/users/Sajmani/following{/other_user}","gists_url":"https://api.github.com/users/Sajmani/gists{/gist_id}","starred_url":"https://api.github.com/users/Sajmani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sajmani/subscriptions","organizations_url":"https://api.github.com/users/Sajmani/orgs","repos_url":"https://api.github.com/users/Sajmani/repos","events_url":"https://api.github.com/users/Sajmani/events{/privacy}","received_events_url":"https://api.github.com/users/Sajmani/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/24","html_url":"https://github.com/golang/go/milestones/Go1.6","labels_url":"https://api.github.com/repos/golang/go/milestones/24/labels","id":1096159,"number":24,"title":"Go1.6","description":"","creator":{"login":"josharian","id":67496,"avatar_url":"https://avatars.githubusercontent.com/u/67496?v=3","gravatar_id":"","url":"https://api.github.com/users/josharian","html_url":"https://github.com/josharian","followers_url":"https://api.github.com/users/josharian/followers","following_url":"https://api.github.com/users/josharian/following{/other_user}","gists_url":"https://api.github.com/users/josharian/gists{/gist_id}","starred_url":"https://api.github.com/users/josharian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josharian/subscriptions","organizations_url":"https://api.github.com/users/josharian/orgs","repos_url":"https://api.github.com/users/josharian/repos","events_url":"https://api.github.com/users/josharian/events{/privacy}","received_events_url":"https://api.github.com/users/josharian/received_events","type":"User","site_admin":false},"open_issues":139,"closed_issues":10,"state":"open","created_at":"2015-05-05T02:39:06Z","updated_at":"2015-07-07T23:33:57Z","due_on":"2016-01-31T08:00:00Z","closed_at":null},"comments":0,"created_at":"2015-07-07T23:33:57Z","updated_at":"2015-07-07T23:33:57Z","closed_at":null,"body":"user.Current can be expensive (e.g. taking tens of milliseconds when /etc/passwd.cache is big). Caching its result seems like an easy win since lots of disparate bits of code can end up trying to fetch it."}}