{"action":"opened","number":8,"pull_request":{"url":"https://api.github.com/repos/tyba/storable/pulls/8","id":38963584,"html_url":"https://github.com/tyba/storable/pull/8","diff_url":"https://github.com/tyba/storable/pull/8.diff","patch_url":"https://github.com/tyba/storable/pull/8.patch","issue_url":"https://api.github.com/repos/tyba/storable/issues/8","number":8,"state":"open","locked":false,"title":"store.Must* methods","user":{"login":"mcuadros","id":1573114,"avatar_url":"https://avatars.githubusercontent.com/u/1573114?v=3","gravatar_id":"","url":"https://api.github.com/users/mcuadros","html_url":"https://github.com/mcuadros","followers_url":"https://api.github.com/users/mcuadros/followers","following_url":"https://api.github.com/users/mcuadros/following{/other_user}","gists_url":"https://api.github.com/users/mcuadros/gists{/gist_id}","starred_url":"https://api.github.com/users/mcuadros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcuadros/subscriptions","organizations_url":"https://api.github.com/users/mcuadros/orgs","repos_url":"https://api.github.com/users/mcuadros/repos","events_url":"https://api.github.com/users/mcuadros/events{/privacy}","received_events_url":"https://api.github.com/users/mcuadros/received_events","type":"User","site_admin":false},"body":"The goal of the `Must` methods is simplify calls to `Find` and `FindOne` where the panic is something acceptable:\r\n\r\n```go\r\nrs, err := s.Find(q)\r\nif err != nil {\r\n   ...\r\n}\r\ndocs, err := rs.All()\r\nif err != nil {\r\n   ...\r\n}\r\n```\r\n\r\nto \r\n\r\n```go\r\ndocs, err := s.MustFind(q).All()\r\nif err != nil {\r\n   ...\r\n}\r\n```\r\n","created_at":"2015-07-01T09:30:44Z","updated_at":"2015-07-01T09:30:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b933cadb4894ae34883829902c770bb1d6367b5f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tyba/storable/pulls/8/commits","review_comments_url":"https://api.github.com/repos/tyba/storable/pulls/8/comments","review_comment_url":"https://api.github.com/repos/tyba/storable/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tyba/storable/issues/8/comments","statuses_url":"https://api.github.com/repos/tyba/storable/statuses/dcadf0f0efe27d198316d9ea20945f725e2f9a2b","head":{"label":"mcuadros:must","ref":"must","sha":"dcadf0f0efe27d198316d9ea20945f725e2f9a2b","user":{"login":"mcuadros","id":1573114,"avatar_url":"https://avatars.githubusercontent.com/u/1573114?v=3","gravatar_id":"","url":"https://api.github.com/users/mcuadros","html_url":"https://github.com/mcuadros","followers_url":"https://api.github.com/users/mcuadros/followers","following_url":"https://api.github.com/users/mcuadros/following{/other_user}","gists_url":"https://api.github.com/users/mcuadros/gists{/gist_id}","starred_url":"https://api.github.com/users/mcuadros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcuadros/subscriptions","organizations_url":"https://api.github.com/users/mcuadros/orgs","repos_url":"https://api.github.com/users/mcuadros/repos","events_url":"https://api.github.com/users/mcuadros/events{/privacy}","received_events_url":"https://api.github.com/users/mcuadros/received_events","type":"User","site_admin":false},"repo":{"id":38362172,"name":"storable","full_name":"mcuadros/storable","owner":{"login":"mcuadros","id":1573114,"avatar_url":"https://avatars.githubusercontent.com/u/1573114?v=3","gravatar_id":"","url":"https://api.github.com/users/mcuadros","html_url":"https://github.com/mcuadros","followers_url":"https://api.github.com/users/mcuadros/followers","following_url":"https://api.github.com/users/mcuadros/following{/other_user}","gists_url":"https://api.github.com/users/mcuadros/gists{/gist_id}","starred_url":"https://api.github.com/users/mcuadros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcuadros/subscriptions","organizations_url":"https://api.github.com/users/mcuadros/orgs","repos_url":"https://api.github.com/users/mcuadros/repos","events_url":"https://api.github.com/users/mcuadros/events{/privacy}","received_events_url":"https://api.github.com/users/mcuadros/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mcuadros/storable","description":"","fork":true,"url":"https://api.github.com/repos/mcuadros/storable","forks_url":"https://api.github.com/repos/mcuadros/storable/forks","keys_url":"https://api.github.com/repos/mcuadros/storable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mcuadros/storable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mcuadros/storable/teams","hooks_url":"https://api.github.com/repos/mcuadros/storable/hooks","issue_events_url":"https://api.github.com/repos/mcuadros/storable/issues/events{/number}","events_url":"https://api.github.com/repos/mcuadros/storable/events","assignees_url":"https://api.github.com/repos/mcuadros/storable/assignees{/user}","branches_url":"https://api.github.com/repos/mcuadros/storable/branches{/branch}","tags_url":"https://api.github.com/repos/mcuadros/storable/tags","blobs_url":"https://api.github.com/repos/mcuadros/storable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mcuadros/storable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mcuadros/storable/git/refs{/sha}","trees_url":"https://api.github.com/repos/mcuadros/storable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mcuadros/storable/statuses/{sha}","languages_url":"https://api.github.com/repos/mcuadros/storable/languages","stargazers_url":"https://api.github.com/repos/mcuadros/storable/stargazers","contributors_url":"https://api.github.com/repos/mcuadros/storable/contributors","subscribers_url":"https://api.github.com/repos/mcuadros/storable/subscribers","subscription_url":"https://api.github.com/repos/mcuadros/storable/subscription","commits_url":"https://api.github.com/repos/mcuadros/storable/commits{/sha}","git_commits_url":"https://api.github.com/repos/mcuadros/storable/git/commits{/sha}","comments_url":"https://api.github.com/repos/mcuadros/storable/comments{/number}","issue_comment_url":"https://api.github.com/repos/mcuadros/storable/issues/comments{/number}","contents_url":"https://api.github.com/repos/mcuadros/storable/contents/{+path}","compare_url":"https://api.github.com/repos/mcuadros/storable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mcuadros/storable/merges","archive_url":"https://api.github.com/repos/mcuadros/storable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mcuadros/storable/downloads","issues_url":"https://api.github.com/repos/mcuadros/storable/issues{/number}","pulls_url":"https://api.github.com/repos/mcuadros/storable/pulls{/number}","milestones_url":"https://api.github.com/repos/mcuadros/storable/milestones{/number}","notifications_url":"https://api.github.com/repos/mcuadros/storable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mcuadros/storable/labels{/name}","releases_url":"https://api.github.com/repos/mcuadros/storable/releases{/id}","created_at":"2015-07-01T09:27:17Z","updated_at":"2015-07-01T09:27:17Z","pushed_at":"2015-07-01T09:27:30Z","git_url":"git://github.com/mcuadros/storable.git","ssh_url":"git@github.com:mcuadros/storable.git","clone_url":"https://github.com/mcuadros/storable.git","svn_url":"https://github.com/mcuadros/storable","homepage":null,"size":316,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tyba:master","ref":"master","sha":"a9c5d366dd9f1c6ad44d8a7c412159c5349820d1","user":{"login":"tyba","id":6660662,"avatar_url":"https://avatars.githubusercontent.com/u/6660662?v=3","gravatar_id":"","url":"https://api.github.com/users/tyba","html_url":"https://github.com/tyba","followers_url":"https://api.github.com/users/tyba/followers","following_url":"https://api.github.com/users/tyba/following{/other_user}","gists_url":"https://api.github.com/users/tyba/gists{/gist_id}","starred_url":"https://api.github.com/users/tyba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyba/subscriptions","organizations_url":"https://api.github.com/users/tyba/orgs","repos_url":"https://api.github.com/users/tyba/repos","events_url":"https://api.github.com/users/tyba/events{/privacy}","received_events_url":"https://api.github.com/users/tyba/received_events","type":"Organization","site_admin":false},"repo":{"id":33259324,"name":"storable","full_name":"tyba/storable","owner":{"login":"tyba","id":6660662,"avatar_url":"https://avatars.githubusercontent.com/u/6660662?v=3","gravatar_id":"","url":"https://api.github.com/users/tyba","html_url":"https://github.com/tyba","followers_url":"https://api.github.com/users/tyba/followers","following_url":"https://api.github.com/users/tyba/following{/other_user}","gists_url":"https://api.github.com/users/tyba/gists{/gist_id}","starred_url":"https://api.github.com/users/tyba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyba/subscriptions","organizations_url":"https://api.github.com/users/tyba/orgs","repos_url":"https://api.github.com/users/tyba/repos","events_url":"https://api.github.com/users/tyba/events{/privacy}","received_events_url":"https://api.github.com/users/tyba/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tyba/storable","description":"","fork":false,"url":"https://api.github.com/repos/tyba/storable","forks_url":"https://api.github.com/repos/tyba/storable/forks","keys_url":"https://api.github.com/repos/tyba/storable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tyba/storable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tyba/storable/teams","hooks_url":"https://api.github.com/repos/tyba/storable/hooks","issue_events_url":"https://api.github.com/repos/tyba/storable/issues/events{/number}","events_url":"https://api.github.com/repos/tyba/storable/events","assignees_url":"https://api.github.com/repos/tyba/storable/assignees{/user}","branches_url":"https://api.github.com/repos/tyba/storable/branches{/branch}","tags_url":"https://api.github.com/repos/tyba/storable/tags","blobs_url":"https://api.github.com/repos/tyba/storable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tyba/storable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tyba/storable/git/refs{/sha}","trees_url":"https://api.github.com/repos/tyba/storable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tyba/storable/statuses/{sha}","languages_url":"https://api.github.com/repos/tyba/storable/languages","stargazers_url":"https://api.github.com/repos/tyba/storable/stargazers","contributors_url":"https://api.github.com/repos/tyba/storable/contributors","subscribers_url":"https://api.github.com/repos/tyba/storable/subscribers","subscription_url":"https://api.github.com/repos/tyba/storable/subscription","commits_url":"https://api.github.com/repos/tyba/storable/commits{/sha}","git_commits_url":"https://api.github.com/repos/tyba/storable/git/commits{/sha}","comments_url":"https://api.github.com/repos/tyba/storable/comments{/number}","issue_comment_url":"https://api.github.com/repos/tyba/storable/issues/comments{/number}","contents_url":"https://api.github.com/repos/tyba/storable/contents/{+path}","compare_url":"https://api.github.com/repos/tyba/storable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tyba/storable/merges","archive_url":"https://api.github.com/repos/tyba/storable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tyba/storable/downloads","issues_url":"https://api.github.com/repos/tyba/storable/issues{/number}","pulls_url":"https://api.github.com/repos/tyba/storable/pulls{/number}","milestones_url":"https://api.github.com/repos/tyba/storable/milestones{/number}","notifications_url":"https://api.github.com/repos/tyba/storable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tyba/storable/labels{/name}","releases_url":"https://api.github.com/repos/tyba/storable/releases{/id}","created_at":"2015-04-01T16:36:28Z","updated_at":"2015-05-22T02:40:39Z","pushed_at":"2015-07-01T09:30:44Z","git_url":"git://github.com/tyba/storable.git","ssh_url":"git@github.com:tyba/storable.git","clone_url":"https://github.com/tyba/storable.git","svn_url":"https://github.com/tyba/storable","homepage":null,"size":316,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tyba/storable/pulls/8"},"html":{"href":"https://github.com/tyba/storable/pull/8"},"issue":{"href":"https://api.github.com/repos/tyba/storable/issues/8"},"comments":{"href":"https://api.github.com/repos/tyba/storable/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/tyba/storable/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/tyba/storable/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tyba/storable/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/tyba/storable/statuses/dcadf0f0efe27d198316d9ea20945f725e2f9a2b"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":21,"deletions":5,"changed_files":2}}