{"action":"closed","number":5,"pull_request":{"url":"https://api.github.com/repos/BaReinhard/go-chat-router/pulls/5","id":188631943,"html_url":"https://github.com/BaReinhard/go-chat-router/pull/5","diff_url":"https://github.com/BaReinhard/go-chat-router/pull/5.diff","patch_url":"https://github.com/BaReinhard/go-chat-router/pull/5.patch","issue_url":"https://api.github.com/repos/BaReinhard/go-chat-router/issues/5","number":5,"state":"closed","locked":false,"title":"Updated if to switch and commented a bit more","user":{"login":"BaReinhard","id":13072194,"avatar_url":"https://avatars2.githubusercontent.com/u/13072194?v=4","gravatar_id":"","url":"https://api.github.com/users/BaReinhard","html_url":"https://github.com/BaReinhard","followers_url":"https://api.github.com/users/BaReinhard/followers","following_url":"https://api.github.com/users/BaReinhard/following{/other_user}","gists_url":"https://api.github.com/users/BaReinhard/gists{/gist_id}","starred_url":"https://api.github.com/users/BaReinhard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BaReinhard/subscriptions","organizations_url":"https://api.github.com/users/BaReinhard/orgs","repos_url":"https://api.github.com/users/BaReinhard/repos","events_url":"https://api.github.com/users/BaReinhard/events{/privacy}","received_events_url":"https://api.github.com/users/BaReinhard/received_events","type":"User","site_admin":false},"body":"Made the code easier to walk through with comments and used a switch statement to allow for adding new endpoints easier","created_at":"2018-05-17T06:07:51Z","updated_at":"2018-05-17T06:11:26Z","closed_at":"2018-05-17T06:11:26Z","merged_at":"2018-05-17T06:11:26Z","merge_commit_sha":"4062189d08f1de7318db569df1399d4ca918ddae","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/BaReinhard/go-chat-router/pulls/5/commits","review_comments_url":"https://api.github.com/repos/BaReinhard/go-chat-router/pulls/5/comments","review_comment_url":"https://api.github.com/repos/BaReinhard/go-chat-router/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BaReinhard/go-chat-router/issues/5/comments","statuses_url":"https://api.github.com/repos/BaReinhard/go-chat-router/statuses/fbd49328b576e9d6143589ca15dd84243e8580a0","head":{"label":"BaReinhard:bareinhard/documentation-comments","ref":"bareinhard/documentation-comments","sha":"fbd49328b576e9d6143589ca15dd84243e8580a0","user":{"login":"BaReinhard","id":13072194,"avatar_url":"https://avatars2.githubusercontent.com/u/13072194?v=4","gravatar_id":"","url":"https://api.github.com/users/BaReinhard","html_url":"https://github.com/BaReinhard","followers_url":"https://api.github.com/users/BaReinhard/followers","following_url":"https://api.github.com/users/BaReinhard/following{/other_user}","gists_url":"https://api.github.com/users/BaReinhard/gists{/gist_id}","starred_url":"https://api.github.com/users/BaReinhard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BaReinhard/subscriptions","organizations_url":"https://api.github.com/users/BaReinhard/orgs","repos_url":"https://api.github.com/users/BaReinhard/repos","events_url":"https://api.github.com/users/BaReinhard/events{/privacy}","received_events_url":"https://api.github.com/users/BaReinhard/received_events","type":"User","site_admin":false},"repo":{"id":133759049,"name":"go-chat-router","full_name":"BaReinhard/go-chat-router","owner":{"login":"BaReinhard","id":13072194,"avatar_url":"https://avatars2.githubusercontent.com/u/13072194?v=4","gravatar_id":"","url":"https://api.github.com/users/BaReinhard","html_url":"https://github.com/BaReinhard","followers_url":"https://api.github.com/users/BaReinhard/followers","following_url":"https://api.github.com/users/BaReinhard/following{/other_user}","gists_url":"https://api.github.com/users/BaReinhard/gists{/gist_id}","starred_url":"https://api.github.com/users/BaReinhard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BaReinhard/subscriptions","organizations_url":"https://api.github.com/users/BaReinhard/orgs","repos_url":"https://api.github.com/users/BaReinhard/repos","events_url":"https://api.github.com/users/BaReinhard/events{/privacy}","received_events_url":"https://api.github.com/users/BaReinhard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BaReinhard/go-chat-router","description":"A basic chat router written in go.","fork":false,"url":"https://api.github.com/repos/BaReinhard/go-chat-router","forks_url":"https://api.github.com/repos/BaReinhard/go-chat-router/forks","keys_url":"https://api.github.com/repos/BaReinhard/go-chat-router/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BaReinhard/go-chat-router/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BaReinhard/go-chat-router/teams","hooks_url":"https://api.github.com/repos/BaReinhard/go-chat-router/hooks","issue_events_url":"https://api.github.com/repos/BaReinhard/go-chat-router/issues/events{/number}","events_url":"https://api.github.com/repos/BaReinhard/go-chat-router/events","assignees_url":"https://api.github.com/repos/BaReinhard/go-chat-router/assignees{/user}","branches_url":"https://api.github.com/repos/BaReinhard/go-chat-router/branches{/branch}","tags_url":"https://api.github.com/repos/BaReinhard/go-chat-router/tags","blobs_url":"https://api.github.com/repos/BaReinhard/go-chat-router/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BaReinhard/go-chat-router/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BaReinhard/go-chat-router/git/refs{/sha}","trees_url":"https://api.github.com/repos/BaReinhard/go-chat-router/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BaReinhard/go-chat-router/statuses/{sha}","languages_url":"https://api.github.com/repos/BaReinhard/go-chat-router/languages","stargazers_url":"https://api.github.com/repos/BaReinhard/go-chat-router/stargazers","contributors_url":"https://api.github.com/repos/BaReinhard/go-chat-router/contributors","subscribers_url":"https://api.github.com/repos/BaReinhard/go-chat-router/subscribers","subscription_url":"https://api.github.com/repos/BaReinhard/go-chat-router/subscription","commits_url":"https://api.github.com/repos/BaReinhard/go-chat-router/commits{/sha}","git_commits_url":"https://api.github.com/repos/BaReinhard/go-chat-router/git/commits{/sha}","comments_url":"https://api.github.com/repos/BaReinhard/go-chat-router/comments{/number}","issue_comment_url":"https://api.github.com/repos/BaReinhard/go-chat-router/issues/comments{/number}","contents_url":"https://api.github.com/repos/BaReinhard/go-chat-router/contents/{+path}","compare_url":"https://api.github.com/repos/BaReinhard/go-chat-router/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BaReinhard/go-chat-router/merges","archive_url":"https://api.github.com/repos/BaReinhard/go-chat-router/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BaReinhard/go-chat-router/downloads","issues_url":"https://api.github.com/repos/BaReinhard/go-chat-router/issues{/number}","pulls_url":"https://api.github.com/repos/BaReinhard/go-chat-router/pulls{/number}","milestones_url":"https://api.github.com/repos/BaReinhard/go-chat-router/milestones{/number}","notifications_url":"https://api.github.com/repos/BaReinhard/go-chat-router/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BaReinhard/go-chat-router/labels{/name}","releases_url":"https://api.github.com/repos/BaReinhard/go-chat-router/releases{/id}","deployments_url":"https://api.github.com/repos/BaReinhard/go-chat-router/deployments","created_at":"2018-05-17T04:32:00Z","updated_at":"2018-05-17T05:37:09Z","pushed_at":"2018-05-17T06:11:26Z","git_url":"git://github.com/BaReinhard/go-chat-router.git","ssh_url":"git@github.com:BaReinhard/go-chat-router.git","clone_url":"https://github.com/BaReinhard/go-chat-router.git","svn_url":"https://github.com/BaReinhard/go-chat-router","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"BaReinhard:master","ref":"master","sha":"851dbf0014dc7a52876c12af5438b7f17abe2360","user":{"login":"BaReinhard","id":13072194,"avatar_url":"https://avatars2.githubusercontent.com/u/13072194?v=4","gravatar_id":"","url":"https://api.github.com/users/BaReinhard","html_url":"https://github.com/BaReinhard","followers_url":"https://api.github.com/users/BaReinhard/followers","following_url":"https://api.github.com/users/BaReinhard/following{/other_user}","gists_url":"https://api.github.com/users/BaReinhard/gists{/gist_id}","starred_url":"https://api.github.com/users/BaReinhard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BaReinhard/subscriptions","organizations_url":"https://api.github.com/users/BaReinhard/orgs","repos_url":"https://api.github.com/users/BaReinhard/repos","events_url":"https://api.github.com/users/BaReinhard/events{/privacy}","received_events_url":"https://api.github.com/users/BaReinhard/received_events","type":"User","site_admin":false},"repo":{"id":133759049,"name":"go-chat-router","full_name":"BaReinhard/go-chat-router","owner":{"login":"BaReinhard","id":13072194,"avatar_url":"https://avatars2.githubusercontent.com/u/13072194?v=4","gravatar_id":"","url":"https://api.github.com/users/BaReinhard","html_url":"https://github.com/BaReinhard","followers_url":"https://api.github.com/users/BaReinhard/followers","following_url":"https://api.github.com/users/BaReinhard/following{/other_user}","gists_url":"https://api.github.com/users/BaReinhard/gists{/gist_id}","starred_url":"https://api.github.com/users/BaReinhard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BaReinhard/subscriptions","organizations_url":"https://api.github.com/users/BaReinhard/orgs","repos_url":"https://api.github.com/users/BaReinhard/repos","events_url":"https://api.github.com/users/BaReinhard/events{/privacy}","received_events_url":"https://api.github.com/users/BaReinhard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BaReinhard/go-chat-router","description":"A basic chat router written in go.","fork":false,"url":"https://api.github.com/repos/BaReinhard/go-chat-router","forks_url":"https://api.github.com/repos/BaReinhard/go-chat-router/forks","keys_url":"https://api.github.com/repos/BaReinhard/go-chat-router/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BaReinhard/go-chat-router/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BaReinhard/go-chat-router/teams","hooks_url":"https://api.github.com/repos/BaReinhard/go-chat-router/hooks","issue_events_url":"https://api.github.com/repos/BaReinhard/go-chat-router/issues/events{/number}","events_url":"https://api.github.com/repos/BaReinhard/go-chat-router/events","assignees_url":"https://api.github.com/repos/BaReinhard/go-chat-router/assignees{/user}","branches_url":"https://api.github.com/repos/BaReinhard/go-chat-router/branches{/branch}","tags_url":"https://api.github.com/repos/BaReinhard/go-chat-router/tags","blobs_url":"https://api.github.com/repos/BaReinhard/go-chat-router/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BaReinhard/go-chat-router/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BaReinhard/go-chat-router/git/refs{/sha}","trees_url":"https://api.github.com/repos/BaReinhard/go-chat-router/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BaReinhard/go-chat-router/statuses/{sha}","languages_url":"https://api.github.com/repos/BaReinhard/go-chat-router/languages","stargazers_url":"https://api.github.com/repos/BaReinhard/go-chat-router/stargazers","contributors_url":"https://api.github.com/repos/BaReinhard/go-chat-router/contributors","subscribers_url":"https://api.github.com/repos/BaReinhard/go-chat-router/subscribers","subscription_url":"https://api.github.com/repos/BaReinhard/go-chat-router/subscription","commits_url":"https://api.github.com/repos/BaReinhard/go-chat-router/commits{/sha}","git_commits_url":"https://api.github.com/repos/BaReinhard/go-chat-router/git/commits{/sha}","comments_url":"https://api.github.com/repos/BaReinhard/go-chat-router/comments{/number}","issue_comment_url":"https://api.github.com/repos/BaReinhard/go-chat-router/issues/comments{/number}","contents_url":"https://api.github.com/repos/BaReinhard/go-chat-router/contents/{+path}","compare_url":"https://api.github.com/repos/BaReinhard/go-chat-router/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BaReinhard/go-chat-router/merges","archive_url":"https://api.github.com/repos/BaReinhard/go-chat-router/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BaReinhard/go-chat-router/downloads","issues_url":"https://api.github.com/repos/BaReinhard/go-chat-router/issues{/number}","pulls_url":"https://api.github.com/repos/BaReinhard/go-chat-router/pulls{/number}","milestones_url":"https://api.github.com/repos/BaReinhard/go-chat-router/milestones{/number}","notifications_url":"https://api.github.com/repos/BaReinhard/go-chat-router/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BaReinhard/go-chat-router/labels{/name}","releases_url":"https://api.github.com/repos/BaReinhard/go-chat-router/releases{/id}","deployments_url":"https://api.github.com/repos/BaReinhard/go-chat-router/deployments","created_at":"2018-05-17T04:32:00Z","updated_at":"2018-05-17T05:37:09Z","pushed_at":"2018-05-17T06:11:26Z","git_url":"git://github.com/BaReinhard/go-chat-router.git","ssh_url":"git@github.com:BaReinhard/go-chat-router.git","clone_url":"https://github.com/BaReinhard/go-chat-router.git","svn_url":"https://github.com/BaReinhard/go-chat-router","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BaReinhard/go-chat-router/pulls/5"},"html":{"href":"https://github.com/BaReinhard/go-chat-router/pull/5"},"issue":{"href":"https://api.github.com/repos/BaReinhard/go-chat-router/issues/5"},"comments":{"href":"https://api.github.com/repos/BaReinhard/go-chat-router/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/BaReinhard/go-chat-router/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/BaReinhard/go-chat-router/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BaReinhard/go-chat-router/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/BaReinhard/go-chat-router/statuses/fbd49328b576e9d6143589ca15dd84243e8580a0"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"BaReinhard","id":13072194,"avatar_url":"https://avatars2.githubusercontent.com/u/13072194?v=4","gravatar_id":"","url":"https://api.github.com/users/BaReinhard","html_url":"https://github.com/BaReinhard","followers_url":"https://api.github.com/users/BaReinhard/followers","following_url":"https://api.github.com/users/BaReinhard/following{/other_user}","gists_url":"https://api.github.com/users/BaReinhard/gists{/gist_id}","starred_url":"https://api.github.com/users/BaReinhard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BaReinhard/subscriptions","organizations_url":"https://api.github.com/users/BaReinhard/orgs","repos_url":"https://api.github.com/users/BaReinhard/repos","events_url":"https://api.github.com/users/BaReinhard/events{/privacy}","received_events_url":"https://api.github.com/users/BaReinhard/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":23,"deletions":28,"changed_files":1}}
{"actor":{"display_login":"BaReinhard"}}