{"action":"created","issue":{"url":"https://api.github.com/repos/zmb3/spotify/issues/60","repository_url":"https://api.github.com/repos/zmb3/spotify","labels_url":"https://api.github.com/repos/zmb3/spotify/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/zmb3/spotify/issues/60/comments","events_url":"https://api.github.com/repos/zmb3/spotify/issues/60/events","html_url":"https://github.com/zmb3/spotify/issues/60","id":302195310,"number":60,"title":"Why are pointers required for options?","user":{"login":"gmenih341","id":1362216,"avatar_url":"https://avatars3.githubusercontent.com/u/1362216?v=4","gravatar_id":"","url":"https://api.github.com/users/gmenih341","html_url":"https://github.com/gmenih341","followers_url":"https://api.github.com/users/gmenih341/followers","following_url":"https://api.github.com/users/gmenih341/following{/other_user}","gists_url":"https://api.github.com/users/gmenih341/gists{/gist_id}","starred_url":"https://api.github.com/users/gmenih341/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmenih341/subscriptions","organizations_url":"https://api.github.com/users/gmenih341/orgs","repos_url":"https://api.github.com/users/gmenih341/repos","events_url":"https://api.github.com/users/gmenih341/events{/privacy}","received_events_url":"https://api.github.com/users/gmenih341/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-05T07:22:53Z","updated_at":"2018-03-05T15:51:39Z","closed_at":null,"author_association":"NONE","body":"https://github.com/zmb3/spotify/blob/master/spotify.go#L235\r\n\r\nI'm having trouble understanding why pointers are required for options? Especially for arguments like `Offset` and `Limit`. "},"comment":{"url":"https://api.github.com/repos/zmb3/spotify/issues/comments/370463858","html_url":"https://github.com/zmb3/spotify/issues/60#issuecomment-370463858","issue_url":"https://api.github.com/repos/zmb3/spotify/issues/60","id":370463858,"user":{"login":"zmb3","id":7527103,"avatar_url":"https://avatars3.githubusercontent.com/u/7527103?v=4","gravatar_id":"","url":"https://api.github.com/users/zmb3","html_url":"https://github.com/zmb3","followers_url":"https://api.github.com/users/zmb3/followers","following_url":"https://api.github.com/users/zmb3/following{/other_user}","gists_url":"https://api.github.com/users/zmb3/gists{/gist_id}","starred_url":"https://api.github.com/users/zmb3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zmb3/subscriptions","organizations_url":"https://api.github.com/users/zmb3/orgs","repos_url":"https://api.github.com/users/zmb3/repos","events_url":"https://api.github.com/users/zmb3/events{/privacy}","received_events_url":"https://api.github.com/users/zmb3/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T15:51:39Z","updated_at":"2018-03-05T15:51:39Z","author_association":"OWNER","body":"Perhaps, but there’s little point in breaking the API now.\n\nOn Mon, Mar 5, 2018 at 8:25 AM Gregor Menih <notifications@github.com>\nwrote:\n\n> But since Options are made out of primitive types, wouldn't it make more\n> sense to check for zero values?\n>\n> For example, in this line\n> <https://github.com/zmb3/spotify/blob/master/spotify.go#L258>, couldn't\n> we just check for zero value, instead of nil? I'm pretty new to Go, and I\n> only skimmed through this package a bit, so bare with me.\n>\n> If this make sense, I'm more than happy to do a PR.\n>\n> —\n> You are receiving this because you commented.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/zmb3/spotify/issues/60#issuecomment-370454632>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AHLav2SQPDn6WnxOg7eijlhu13PUBKyZks5tbVj0gaJpZM4Sb1FT>\n> .\n>\n"}}
{"actor":{"display_login":"zmb3"}}