{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/brettchalupa/far/pulls/4","id":36878727,"html_url":"https://github.com/brettchalupa/far/pull/4","diff_url":"https://github.com/brettchalupa/far/pull/4.diff","patch_url":"https://github.com/brettchalupa/far/pull/4.patch","issue_url":"https://api.github.com/repos/brettchalupa/far/issues/4","number":4,"state":"open","locked":false,"title":"Restructure code and internal packages","user":{"login":"brettchalupa","id":928367,"avatar_url":"https://avatars.githubusercontent.com/u/928367?v=3","gravatar_id":"","url":"https://api.github.com/users/brettchalupa","html_url":"https://github.com/brettchalupa","followers_url":"https://api.github.com/users/brettchalupa/followers","following_url":"https://api.github.com/users/brettchalupa/following{/other_user}","gists_url":"https://api.github.com/users/brettchalupa/gists{/gist_id}","starred_url":"https://api.github.com/users/brettchalupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettchalupa/subscriptions","organizations_url":"https://api.github.com/users/brettchalupa/orgs","repos_url":"https://api.github.com/users/brettchalupa/repos","events_url":"https://api.github.com/users/brettchalupa/events{/privacy}","received_events_url":"https://api.github.com/users/brettchalupa/received_events","type":"User","site_admin":false},"body":"Extract the code that was in main.go into two different packages: cmd &\r\nfar.\r\n\r\ncmd is responsible for validating the user input and starting the\r\nfinding and replacing.\r\n\r\nfar is responsible for taking what cmd sends it and finding and\r\nreplacing the text.\r\n\r\nThis structure should be easier to manage (and hopefully easier to\r\ntest). It is based, somewhat off of the structure of\r\nhttps://github.com/exercism/cli\r\n\r\nMy apologies if this is not very Go-like. :)","created_at":"2015-06-03T21:13:42Z","updated_at":"2015-06-03T21:13:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/brettchalupa/far/pulls/4/commits","review_comments_url":"https://api.github.com/repos/brettchalupa/far/pulls/4/comments","review_comment_url":"https://api.github.com/repos/brettchalupa/far/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brettchalupa/far/issues/4/comments","statuses_url":"https://api.github.com/repos/brettchalupa/far/statuses/a4c48fab54521fbdefd7cb6038357356d565b874","head":{"label":"brettchalupa:package-restructure","ref":"package-restructure","sha":"a4c48fab54521fbdefd7cb6038357356d565b874","user":{"login":"brettchalupa","id":928367,"avatar_url":"https://avatars.githubusercontent.com/u/928367?v=3","gravatar_id":"","url":"https://api.github.com/users/brettchalupa","html_url":"https://github.com/brettchalupa","followers_url":"https://api.github.com/users/brettchalupa/followers","following_url":"https://api.github.com/users/brettchalupa/following{/other_user}","gists_url":"https://api.github.com/users/brettchalupa/gists{/gist_id}","starred_url":"https://api.github.com/users/brettchalupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettchalupa/subscriptions","organizations_url":"https://api.github.com/users/brettchalupa/orgs","repos_url":"https://api.github.com/users/brettchalupa/repos","events_url":"https://api.github.com/users/brettchalupa/events{/privacy}","received_events_url":"https://api.github.com/users/brettchalupa/received_events","type":"User","site_admin":false},"repo":{"id":35381627,"name":"far","full_name":"brettchalupa/far","owner":{"login":"brettchalupa","id":928367,"avatar_url":"https://avatars.githubusercontent.com/u/928367?v=3","gravatar_id":"","url":"https://api.github.com/users/brettchalupa","html_url":"https://github.com/brettchalupa","followers_url":"https://api.github.com/users/brettchalupa/followers","following_url":"https://api.github.com/users/brettchalupa/following{/other_user}","gists_url":"https://api.github.com/users/brettchalupa/gists{/gist_id}","starred_url":"https://api.github.com/users/brettchalupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettchalupa/subscriptions","organizations_url":"https://api.github.com/users/brettchalupa/orgs","repos_url":"https://api.github.com/users/brettchalupa/repos","events_url":"https://api.github.com/users/brettchalupa/events{/privacy}","received_events_url":"https://api.github.com/users/brettchalupa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brettchalupa/far","description":"Find And Replace command line tool","fork":false,"url":"https://api.github.com/repos/brettchalupa/far","forks_url":"https://api.github.com/repos/brettchalupa/far/forks","keys_url":"https://api.github.com/repos/brettchalupa/far/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brettchalupa/far/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brettchalupa/far/teams","hooks_url":"https://api.github.com/repos/brettchalupa/far/hooks","issue_events_url":"https://api.github.com/repos/brettchalupa/far/issues/events{/number}","events_url":"https://api.github.com/repos/brettchalupa/far/events","assignees_url":"https://api.github.com/repos/brettchalupa/far/assignees{/user}","branches_url":"https://api.github.com/repos/brettchalupa/far/branches{/branch}","tags_url":"https://api.github.com/repos/brettchalupa/far/tags","blobs_url":"https://api.github.com/repos/brettchalupa/far/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brettchalupa/far/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brettchalupa/far/git/refs{/sha}","trees_url":"https://api.github.com/repos/brettchalupa/far/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brettchalupa/far/statuses/{sha}","languages_url":"https://api.github.com/repos/brettchalupa/far/languages","stargazers_url":"https://api.github.com/repos/brettchalupa/far/stargazers","contributors_url":"https://api.github.com/repos/brettchalupa/far/contributors","subscribers_url":"https://api.github.com/repos/brettchalupa/far/subscribers","subscription_url":"https://api.github.com/repos/brettchalupa/far/subscription","commits_url":"https://api.github.com/repos/brettchalupa/far/commits{/sha}","git_commits_url":"https://api.github.com/repos/brettchalupa/far/git/commits{/sha}","comments_url":"https://api.github.com/repos/brettchalupa/far/comments{/number}","issue_comment_url":"https://api.github.com/repos/brettchalupa/far/issues/comments{/number}","contents_url":"https://api.github.com/repos/brettchalupa/far/contents/{+path}","compare_url":"https://api.github.com/repos/brettchalupa/far/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brettchalupa/far/merges","archive_url":"https://api.github.com/repos/brettchalupa/far/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brettchalupa/far/downloads","issues_url":"https://api.github.com/repos/brettchalupa/far/issues{/number}","pulls_url":"https://api.github.com/repos/brettchalupa/far/pulls{/number}","milestones_url":"https://api.github.com/repos/brettchalupa/far/milestones{/number}","notifications_url":"https://api.github.com/repos/brettchalupa/far/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brettchalupa/far/labels{/name}","releases_url":"https://api.github.com/repos/brettchalupa/far/releases{/id}","created_at":"2015-05-10T17:52:42Z","updated_at":"2015-05-10T18:44:00Z","pushed_at":"2015-06-02T23:43:37Z","git_url":"git://github.com/brettchalupa/far.git","ssh_url":"git@github.com:brettchalupa/far.git","clone_url":"https://github.com/brettchalupa/far.git","svn_url":"https://github.com/brettchalupa/far","homepage":"","size":160,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"brettchalupa:master","ref":"master","sha":"cc6f68d25e73d98df7a35e4e934a9b23981e0981","user":{"login":"brettchalupa","id":928367,"avatar_url":"https://avatars.githubusercontent.com/u/928367?v=3","gravatar_id":"","url":"https://api.github.com/users/brettchalupa","html_url":"https://github.com/brettchalupa","followers_url":"https://api.github.com/users/brettchalupa/followers","following_url":"https://api.github.com/users/brettchalupa/following{/other_user}","gists_url":"https://api.github.com/users/brettchalupa/gists{/gist_id}","starred_url":"https://api.github.com/users/brettchalupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettchalupa/subscriptions","organizations_url":"https://api.github.com/users/brettchalupa/orgs","repos_url":"https://api.github.com/users/brettchalupa/repos","events_url":"https://api.github.com/users/brettchalupa/events{/privacy}","received_events_url":"https://api.github.com/users/brettchalupa/received_events","type":"User","site_admin":false},"repo":{"id":35381627,"name":"far","full_name":"brettchalupa/far","owner":{"login":"brettchalupa","id":928367,"avatar_url":"https://avatars.githubusercontent.com/u/928367?v=3","gravatar_id":"","url":"https://api.github.com/users/brettchalupa","html_url":"https://github.com/brettchalupa","followers_url":"https://api.github.com/users/brettchalupa/followers","following_url":"https://api.github.com/users/brettchalupa/following{/other_user}","gists_url":"https://api.github.com/users/brettchalupa/gists{/gist_id}","starred_url":"https://api.github.com/users/brettchalupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettchalupa/subscriptions","organizations_url":"https://api.github.com/users/brettchalupa/orgs","repos_url":"https://api.github.com/users/brettchalupa/repos","events_url":"https://api.github.com/users/brettchalupa/events{/privacy}","received_events_url":"https://api.github.com/users/brettchalupa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brettchalupa/far","description":"Find And Replace command line tool","fork":false,"url":"https://api.github.com/repos/brettchalupa/far","forks_url":"https://api.github.com/repos/brettchalupa/far/forks","keys_url":"https://api.github.com/repos/brettchalupa/far/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brettchalupa/far/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brettchalupa/far/teams","hooks_url":"https://api.github.com/repos/brettchalupa/far/hooks","issue_events_url":"https://api.github.com/repos/brettchalupa/far/issues/events{/number}","events_url":"https://api.github.com/repos/brettchalupa/far/events","assignees_url":"https://api.github.com/repos/brettchalupa/far/assignees{/user}","branches_url":"https://api.github.com/repos/brettchalupa/far/branches{/branch}","tags_url":"https://api.github.com/repos/brettchalupa/far/tags","blobs_url":"https://api.github.com/repos/brettchalupa/far/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brettchalupa/far/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brettchalupa/far/git/refs{/sha}","trees_url":"https://api.github.com/repos/brettchalupa/far/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brettchalupa/far/statuses/{sha}","languages_url":"https://api.github.com/repos/brettchalupa/far/languages","stargazers_url":"https://api.github.com/repos/brettchalupa/far/stargazers","contributors_url":"https://api.github.com/repos/brettchalupa/far/contributors","subscribers_url":"https://api.github.com/repos/brettchalupa/far/subscribers","subscription_url":"https://api.github.com/repos/brettchalupa/far/subscription","commits_url":"https://api.github.com/repos/brettchalupa/far/commits{/sha}","git_commits_url":"https://api.github.com/repos/brettchalupa/far/git/commits{/sha}","comments_url":"https://api.github.com/repos/brettchalupa/far/comments{/number}","issue_comment_url":"https://api.github.com/repos/brettchalupa/far/issues/comments{/number}","contents_url":"https://api.github.com/repos/brettchalupa/far/contents/{+path}","compare_url":"https://api.github.com/repos/brettchalupa/far/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brettchalupa/far/merges","archive_url":"https://api.github.com/repos/brettchalupa/far/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brettchalupa/far/downloads","issues_url":"https://api.github.com/repos/brettchalupa/far/issues{/number}","pulls_url":"https://api.github.com/repos/brettchalupa/far/pulls{/number}","milestones_url":"https://api.github.com/repos/brettchalupa/far/milestones{/number}","notifications_url":"https://api.github.com/repos/brettchalupa/far/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brettchalupa/far/labels{/name}","releases_url":"https://api.github.com/repos/brettchalupa/far/releases{/id}","created_at":"2015-05-10T17:52:42Z","updated_at":"2015-05-10T18:44:00Z","pushed_at":"2015-06-02T23:43:37Z","git_url":"git://github.com/brettchalupa/far.git","ssh_url":"git@github.com:brettchalupa/far.git","clone_url":"https://github.com/brettchalupa/far.git","svn_url":"https://github.com/brettchalupa/far","homepage":"","size":160,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brettchalupa/far/pulls/4"},"html":{"href":"https://github.com/brettchalupa/far/pull/4"},"issue":{"href":"https://api.github.com/repos/brettchalupa/far/issues/4"},"comments":{"href":"https://api.github.com/repos/brettchalupa/far/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/brettchalupa/far/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/brettchalupa/far/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brettchalupa/far/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/brettchalupa/far/statuses/a4c48fab54521fbdefd7cb6038357356d565b874"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":95,"deletions":81,"changed_files":3}}