{"action":"created","issue":{"url":"https://api.github.com/repos/sno6/gommand/issues/2","repository_url":"https://api.github.com/repos/sno6/gommand","labels_url":"https://api.github.com/repos/sno6/gommand/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/sno6/gommand/issues/2/comments","events_url":"https://api.github.com/repos/sno6/gommand/issues/2/events","html_url":"https://github.com/sno6/gommand/issues/2","id":137786363,"number":2,"title":"Stopping a running webserver doesn't remove temp go file","user":{"login":"sno6","id":8223143,"avatar_url":"https://avatars.githubusercontent.com/u/8223143?v=3","gravatar_id":"","url":"https://api.github.com/users/sno6","html_url":"https://github.com/sno6","followers_url":"https://api.github.com/users/sno6/followers","following_url":"https://api.github.com/users/sno6/following{/other_user}","gists_url":"https://api.github.com/users/sno6/gists{/gist_id}","starred_url":"https://api.github.com/users/sno6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sno6/subscriptions","organizations_url":"https://api.github.com/users/sno6/orgs","repos_url":"https://api.github.com/users/sno6/repos","events_url":"https://api.github.com/users/sno6/events{/privacy}","received_events_url":"https://api.github.com/users/sno6/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-02T06:29:26Z","updated_at":"2016-05-13T00:53:37Z","closed_at":null,"body":"If you run gommand with code that starts and runs an http server, there is no way to stop the process without killing it or stopping it through terminal signals. When doing this, the program cancels and doesn't run the clean up defer statement. Implement a way to read exit signals and then add the clean up defer block there so it can remove the file before exiting the program."},"comment":{"url":"https://api.github.com/repos/sno6/gommand/issues/comments/218925947","html_url":"https://github.com/sno6/gommand/issues/2#issuecomment-218925947","issue_url":"https://api.github.com/repos/sno6/gommand/issues/2","id":218925947,"user":{"login":"sno6","id":8223143,"avatar_url":"https://avatars.githubusercontent.com/u/8223143?v=3","gravatar_id":"","url":"https://api.github.com/users/sno6","html_url":"https://github.com/sno6","followers_url":"https://api.github.com/users/sno6/followers","following_url":"https://api.github.com/users/sno6/following{/other_user}","gists_url":"https://api.github.com/users/sno6/gists{/gist_id}","starred_url":"https://api.github.com/users/sno6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sno6/subscriptions","organizations_url":"https://api.github.com/users/sno6/orgs","repos_url":"https://api.github.com/users/sno6/repos","events_url":"https://api.github.com/users/sno6/events{/privacy}","received_events_url":"https://api.github.com/users/sno6/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T00:53:37Z","updated_at":"2016-05-13T00:53:37Z","body":"Thanks:)"}}