{"action":"closed","number":310,"pull_request":{"url":"https://api.github.com/repos/go-martini/martini/pulls/310","id":23361241,"html_url":"https://github.com/go-martini/martini/pull/310","diff_url":"https://github.com/go-martini/martini/pull/310.diff","patch_url":"https://github.com/go-martini/martini/pull/310.patch","issue_url":"https://api.github.com/repos/go-martini/martini/issues/310","number":310,"state":"closed","locked":false,"title":"add support for stopping server","user":{"login":"rmpacheco","id":4065090,"avatar_url":"https://avatars.githubusercontent.com/u/4065090?v=3","gravatar_id":"","url":"https://api.github.com/users/rmpacheco","html_url":"https://github.com/rmpacheco","followers_url":"https://api.github.com/users/rmpacheco/followers","following_url":"https://api.github.com/users/rmpacheco/following{/other_user}","gists_url":"https://api.github.com/users/rmpacheco/gists{/gist_id}","starred_url":"https://api.github.com/users/rmpacheco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmpacheco/subscriptions","organizations_url":"https://api.github.com/users/rmpacheco/orgs","repos_url":"https://api.github.com/users/rmpacheco/repos","events_url":"https://api.github.com/users/rmpacheco/events{/privacy}","received_events_url":"https://api.github.com/users/rmpacheco/received_events","type":"User","site_admin":false},"body":"I'm new to Go but figured I'd try to address #307 as a little exercise for learning purposes.  Here is my solution in case you can use any of it.","created_at":"2014-10-27T03:01:20Z","updated_at":"2015-01-30T13:52:31Z","closed_at":"2015-01-30T13:52:31Z","merged_at":null,"merge_commit_sha":"1bbe63609db20fecc6b44636b810479f0bc42a87","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/go-martini/martini/pulls/310/commits","review_comments_url":"https://api.github.com/repos/go-martini/martini/pulls/310/comments","review_comment_url":"https://api.github.com/repos/go-martini/martini/pulls/comments/{number}","comments_url":"https://api.github.com/repos/go-martini/martini/issues/310/comments","statuses_url":"https://api.github.com/repos/go-martini/martini/statuses/c97199f5e5fe72250adfddbbe6a5b82afd41db6c","head":{"label":"rmpacheco:stoppable","ref":"stoppable","sha":"c97199f5e5fe72250adfddbbe6a5b82afd41db6c","user":{"login":"rmpacheco","id":4065090,"avatar_url":"https://avatars.githubusercontent.com/u/4065090?v=3","gravatar_id":"","url":"https://api.github.com/users/rmpacheco","html_url":"https://github.com/rmpacheco","followers_url":"https://api.github.com/users/rmpacheco/followers","following_url":"https://api.github.com/users/rmpacheco/following{/other_user}","gists_url":"https://api.github.com/users/rmpacheco/gists{/gist_id}","starred_url":"https://api.github.com/users/rmpacheco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmpacheco/subscriptions","organizations_url":"https://api.github.com/users/rmpacheco/orgs","repos_url":"https://api.github.com/users/rmpacheco/repos","events_url":"https://api.github.com/users/rmpacheco/events{/privacy}","received_events_url":"https://api.github.com/users/rmpacheco/received_events","type":"User","site_admin":false},"repo":{"id":25800693,"name":"martini","full_name":"rmpacheco/martini","owner":{"login":"rmpacheco","id":4065090,"avatar_url":"https://avatars.githubusercontent.com/u/4065090?v=3","gravatar_id":"","url":"https://api.github.com/users/rmpacheco","html_url":"https://github.com/rmpacheco","followers_url":"https://api.github.com/users/rmpacheco/followers","following_url":"https://api.github.com/users/rmpacheco/following{/other_user}","gists_url":"https://api.github.com/users/rmpacheco/gists{/gist_id}","starred_url":"https://api.github.com/users/rmpacheco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmpacheco/subscriptions","organizations_url":"https://api.github.com/users/rmpacheco/orgs","repos_url":"https://api.github.com/users/rmpacheco/repos","events_url":"https://api.github.com/users/rmpacheco/events{/privacy}","received_events_url":"https://api.github.com/users/rmpacheco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rmpacheco/martini","description":"Classy web framework for Go","fork":true,"url":"https://api.github.com/repos/rmpacheco/martini","forks_url":"https://api.github.com/repos/rmpacheco/martini/forks","keys_url":"https://api.github.com/repos/rmpacheco/martini/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rmpacheco/martini/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rmpacheco/martini/teams","hooks_url":"https://api.github.com/repos/rmpacheco/martini/hooks","issue_events_url":"https://api.github.com/repos/rmpacheco/martini/issues/events{/number}","events_url":"https://api.github.com/repos/rmpacheco/martini/events","assignees_url":"https://api.github.com/repos/rmpacheco/martini/assignees{/user}","branches_url":"https://api.github.com/repos/rmpacheco/martini/branches{/branch}","tags_url":"https://api.github.com/repos/rmpacheco/martini/tags","blobs_url":"https://api.github.com/repos/rmpacheco/martini/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rmpacheco/martini/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rmpacheco/martini/git/refs{/sha}","trees_url":"https://api.github.com/repos/rmpacheco/martini/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rmpacheco/martini/statuses/{sha}","languages_url":"https://api.github.com/repos/rmpacheco/martini/languages","stargazers_url":"https://api.github.com/repos/rmpacheco/martini/stargazers","contributors_url":"https://api.github.com/repos/rmpacheco/martini/contributors","subscribers_url":"https://api.github.com/repos/rmpacheco/martini/subscribers","subscription_url":"https://api.github.com/repos/rmpacheco/martini/subscription","commits_url":"https://api.github.com/repos/rmpacheco/martini/commits{/sha}","git_commits_url":"https://api.github.com/repos/rmpacheco/martini/git/commits{/sha}","comments_url":"https://api.github.com/repos/rmpacheco/martini/comments{/number}","issue_comment_url":"https://api.github.com/repos/rmpacheco/martini/issues/comments/{number}","contents_url":"https://api.github.com/repos/rmpacheco/martini/contents/{+path}","compare_url":"https://api.github.com/repos/rmpacheco/martini/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rmpacheco/martini/merges","archive_url":"https://api.github.com/repos/rmpacheco/martini/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rmpacheco/martini/downloads","issues_url":"https://api.github.com/repos/rmpacheco/martini/issues{/number}","pulls_url":"https://api.github.com/repos/rmpacheco/martini/pulls{/number}","milestones_url":"https://api.github.com/repos/rmpacheco/martini/milestones{/number}","notifications_url":"https://api.github.com/repos/rmpacheco/martini/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rmpacheco/martini/labels{/name}","releases_url":"https://api.github.com/repos/rmpacheco/martini/releases{/id}","created_at":"2014-10-27T02:55:16Z","updated_at":"2014-10-27T02:11:08Z","pushed_at":"2015-01-07T19:42:39Z","git_url":"git://github.com/rmpacheco/martini.git","ssh_url":"git@github.com:rmpacheco/martini.git","clone_url":"https://github.com/rmpacheco/martini.git","svn_url":"https://github.com/rmpacheco/martini","homepage":"martini.codegangsta.io","size":445,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"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":"go-martini:master","ref":"master","sha":"c8425257dee954ab8b116b10ded3070821bcaec6","user":{"login":"go-martini","id":7096097,"avatar_url":"https://avatars.githubusercontent.com/u/7096097?v=3","gravatar_id":"","url":"https://api.github.com/users/go-martini","html_url":"https://github.com/go-martini","followers_url":"https://api.github.com/users/go-martini/followers","following_url":"https://api.github.com/users/go-martini/following{/other_user}","gists_url":"https://api.github.com/users/go-martini/gists{/gist_id}","starred_url":"https://api.github.com/users/go-martini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-martini/subscriptions","organizations_url":"https://api.github.com/users/go-martini/orgs","repos_url":"https://api.github.com/users/go-martini/repos","events_url":"https://api.github.com/users/go-martini/events{/privacy}","received_events_url":"https://api.github.com/users/go-martini/received_events","type":"Organization","site_admin":false},"repo":{"id":13975314,"name":"martini","full_name":"go-martini/martini","owner":{"login":"go-martini","id":7096097,"avatar_url":"https://avatars.githubusercontent.com/u/7096097?v=3","gravatar_id":"","url":"https://api.github.com/users/go-martini","html_url":"https://github.com/go-martini","followers_url":"https://api.github.com/users/go-martini/followers","following_url":"https://api.github.com/users/go-martini/following{/other_user}","gists_url":"https://api.github.com/users/go-martini/gists{/gist_id}","starred_url":"https://api.github.com/users/go-martini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-martini/subscriptions","organizations_url":"https://api.github.com/users/go-martini/orgs","repos_url":"https://api.github.com/users/go-martini/repos","events_url":"https://api.github.com/users/go-martini/events{/privacy}","received_events_url":"https://api.github.com/users/go-martini/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/go-martini/martini","description":"Classy web framework for Go","fork":false,"url":"https://api.github.com/repos/go-martini/martini","forks_url":"https://api.github.com/repos/go-martini/martini/forks","keys_url":"https://api.github.com/repos/go-martini/martini/keys{/key_id}","collaborators_url":"https://api.github.com/repos/go-martini/martini/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/go-martini/martini/teams","hooks_url":"https://api.github.com/repos/go-martini/martini/hooks","issue_events_url":"https://api.github.com/repos/go-martini/martini/issues/events{/number}","events_url":"https://api.github.com/repos/go-martini/martini/events","assignees_url":"https://api.github.com/repos/go-martini/martini/assignees{/user}","branches_url":"https://api.github.com/repos/go-martini/martini/branches{/branch}","tags_url":"https://api.github.com/repos/go-martini/martini/tags","blobs_url":"https://api.github.com/repos/go-martini/martini/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/go-martini/martini/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/go-martini/martini/git/refs{/sha}","trees_url":"https://api.github.com/repos/go-martini/martini/git/trees{/sha}","statuses_url":"https://api.github.com/repos/go-martini/martini/statuses/{sha}","languages_url":"https://api.github.com/repos/go-martini/martini/languages","stargazers_url":"https://api.github.com/repos/go-martini/martini/stargazers","contributors_url":"https://api.github.com/repos/go-martini/martini/contributors","subscribers_url":"https://api.github.com/repos/go-martini/martini/subscribers","subscription_url":"https://api.github.com/repos/go-martini/martini/subscription","commits_url":"https://api.github.com/repos/go-martini/martini/commits{/sha}","git_commits_url":"https://api.github.com/repos/go-martini/martini/git/commits{/sha}","comments_url":"https://api.github.com/repos/go-martini/martini/comments{/number}","issue_comment_url":"https://api.github.com/repos/go-martini/martini/issues/comments/{number}","contents_url":"https://api.github.com/repos/go-martini/martini/contents/{+path}","compare_url":"https://api.github.com/repos/go-martini/martini/compare/{base}...{head}","merges_url":"https://api.github.com/repos/go-martini/martini/merges","archive_url":"https://api.github.com/repos/go-martini/martini/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/go-martini/martini/downloads","issues_url":"https://api.github.com/repos/go-martini/martini/issues{/number}","pulls_url":"https://api.github.com/repos/go-martini/martini/pulls{/number}","milestones_url":"https://api.github.com/repos/go-martini/martini/milestones{/number}","notifications_url":"https://api.github.com/repos/go-martini/martini/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/go-martini/martini/labels{/name}","releases_url":"https://api.github.com/repos/go-martini/martini/releases{/id}","created_at":"2013-10-30T02:34:07Z","updated_at":"2015-01-30T13:52:11Z","pushed_at":"2015-01-30T13:52:11Z","git_url":"git://github.com/go-martini/martini.git","ssh_url":"git@github.com:go-martini/martini.git","clone_url":"https://github.com/go-martini/martini.git","svn_url":"https://github.com/go-martini/martini","homepage":"martini.codegangsta.io","size":1919,"stargazers_count":6240,"watchers_count":6240,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":610,"mirror_url":null,"open_issues_count":13,"forks":610,"open_issues":13,"watchers":6240,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/go-martini/martini/pulls/310"},"html":{"href":"https://github.com/go-martini/martini/pull/310"},"issue":{"href":"https://api.github.com/repos/go-martini/martini/issues/310"},"comments":{"href":"https://api.github.com/repos/go-martini/martini/issues/310/comments"},"review_comments":{"href":"https://api.github.com/repos/go-martini/martini/pulls/310/comments"},"review_comment":{"href":"https://api.github.com/repos/go-martini/martini/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/go-martini/martini/pulls/310/commits"},"statuses":{"href":"https://api.github.com/repos/go-martini/martini/statuses/c97199f5e5fe72250adfddbbe6a5b82afd41db6c"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":4,"review_comments":1,"commits":2,"additions":161,"deletions":2,"changed_files":3}}