{"action":"created","comment":{"url":"https://api.github.com/repos/grubastik/flat-search/pulls/comments/104402714","pull_request_review_id":25234335,"id":104402714,"diff_hunk":"@@ -0,0 +1,34 @@\n+\n+package main\n+\n+import (\n+    \"./sreality\"\n+    _ \"./models\"\n+    \"./db\"\n+    \"./config\"\n+    \"./email\"\n+)\n+\n+\n+\n+func main() {\n+    config := config.New()\n+\n+    var urlParameters *sreality.UrlParams = sreality.New(config)\n+    adverts := urlParameters.MakeRequest()\n+\n+    db.Storage = db.NewStorage(config)\n+    defer db.Storage.Close()\n+\n+    for _, advert := range *(adverts.GetAdverts()) {","path":"main.go","position":23,"original_position":23,"commit_id":"0a101b04708d5fad975c62ec3bf10670e1fe14b5","original_commit_id":"0a101b04708d5fad975c62ec3bf10670e1fe14b5","user":{"login":"dkondratovych","id":3199501,"avatar_url":"https://avatars0.githubusercontent.com/u/3199501?v=3","gravatar_id":"","url":"https://api.github.com/users/dkondratovych","html_url":"https://github.com/dkondratovych","followers_url":"https://api.github.com/users/dkondratovych/followers","following_url":"https://api.github.com/users/dkondratovych/following{/other_user}","gists_url":"https://api.github.com/users/dkondratovych/gists{/gist_id}","starred_url":"https://api.github.com/users/dkondratovych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkondratovych/subscriptions","organizations_url":"https://api.github.com/users/dkondratovych/orgs","repos_url":"https://api.github.com/users/dkondratovych/repos","events_url":"https://api.github.com/users/dkondratovych/events{/privacy}","received_events_url":"https://api.github.com/users/dkondratovych/received_events","type":"User","site_admin":false},"body":"Main should just read console/terminal arguments, read config, connect to db and call some service/storage method to DO business work or start a server/client.. etc. Move this business logic from main somewhere.","created_at":"2017-03-06T12:31:24Z","updated_at":"2017-03-06T12:35:25Z","html_url":"https://github.com/grubastik/flat-search/pull/1#discussion_r104402714","pull_request_url":"https://api.github.com/repos/grubastik/flat-search/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/grubastik/flat-search/pulls/comments/104402714"},"html":{"href":"https://github.com/grubastik/flat-search/pull/1#discussion_r104402714"},"pull_request":{"href":"https://api.github.com/repos/grubastik/flat-search/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/grubastik/flat-search/pulls/1","id":109243410,"html_url":"https://github.com/grubastik/flat-search/pull/1","diff_url":"https://github.com/grubastik/flat-search/pull/1.diff","patch_url":"https://github.com/grubastik/flat-search/pull/1.patch","issue_url":"https://api.github.com/repos/grubastik/flat-search/issues/1","number":1,"state":"open","locked":false,"title":"Initial commit of the go code.","user":{"login":"grubastik","id":5111142,"avatar_url":"https://avatars3.githubusercontent.com/u/5111142?v=3","gravatar_id":"","url":"https://api.github.com/users/grubastik","html_url":"https://github.com/grubastik","followers_url":"https://api.github.com/users/grubastik/followers","following_url":"https://api.github.com/users/grubastik/following{/other_user}","gists_url":"https://api.github.com/users/grubastik/gists{/gist_id}","starred_url":"https://api.github.com/users/grubastik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grubastik/subscriptions","organizations_url":"https://api.github.com/users/grubastik/orgs","repos_url":"https://api.github.com/users/grubastik/repos","events_url":"https://api.github.com/users/grubastik/events{/privacy}","received_events_url":"https://api.github.com/users/grubastik/received_events","type":"User","site_admin":false},"body":"Next: add tests and add code to use amqp","created_at":"2017-03-06T11:57:39Z","updated_at":"2017-03-06T12:35:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0d19582a8e15b9bd722c3874e7213eeb1650c99e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/grubastik/flat-search/pulls/1/commits","review_comments_url":"https://api.github.com/repos/grubastik/flat-search/pulls/1/comments","review_comment_url":"https://api.github.com/repos/grubastik/flat-search/pulls/comments{/number}","comments_url":"https://api.github.com/repos/grubastik/flat-search/issues/1/comments","statuses_url":"https://api.github.com/repos/grubastik/flat-search/statuses/0a101b04708d5fad975c62ec3bf10670e1fe14b5","head":{"label":"grubastik:initial_commit","ref":"initial_commit","sha":"0a101b04708d5fad975c62ec3bf10670e1fe14b5","user":{"login":"grubastik","id":5111142,"avatar_url":"https://avatars3.githubusercontent.com/u/5111142?v=3","gravatar_id":"","url":"https://api.github.com/users/grubastik","html_url":"https://github.com/grubastik","followers_url":"https://api.github.com/users/grubastik/followers","following_url":"https://api.github.com/users/grubastik/following{/other_user}","gists_url":"https://api.github.com/users/grubastik/gists{/gist_id}","starred_url":"https://api.github.com/users/grubastik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grubastik/subscriptions","organizations_url":"https://api.github.com/users/grubastik/orgs","repos_url":"https://api.github.com/users/grubastik/repos","events_url":"https://api.github.com/users/grubastik/events{/privacy}","received_events_url":"https://api.github.com/users/grubastik/received_events","type":"User","site_admin":false},"repo":{"id":83981264,"name":"flat-search","full_name":"grubastik/flat-search","owner":{"login":"grubastik","id":5111142,"avatar_url":"https://avatars3.githubusercontent.com/u/5111142?v=3","gravatar_id":"","url":"https://api.github.com/users/grubastik","html_url":"https://github.com/grubastik","followers_url":"https://api.github.com/users/grubastik/followers","following_url":"https://api.github.com/users/grubastik/following{/other_user}","gists_url":"https://api.github.com/users/grubastik/gists{/gist_id}","starred_url":"https://api.github.com/users/grubastik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grubastik/subscriptions","organizations_url":"https://api.github.com/users/grubastik/orgs","repos_url":"https://api.github.com/users/grubastik/repos","events_url":"https://api.github.com/users/grubastik/events{/privacy}","received_events_url":"https://api.github.com/users/grubastik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/grubastik/flat-search","description":null,"fork":false,"url":"https://api.github.com/repos/grubastik/flat-search","forks_url":"https://api.github.com/repos/grubastik/flat-search/forks","keys_url":"https://api.github.com/repos/grubastik/flat-search/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grubastik/flat-search/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grubastik/flat-search/teams","hooks_url":"https://api.github.com/repos/grubastik/flat-search/hooks","issue_events_url":"https://api.github.com/repos/grubastik/flat-search/issues/events{/number}","events_url":"https://api.github.com/repos/grubastik/flat-search/events","assignees_url":"https://api.github.com/repos/grubastik/flat-search/assignees{/user}","branches_url":"https://api.github.com/repos/grubastik/flat-search/branches{/branch}","tags_url":"https://api.github.com/repos/grubastik/flat-search/tags","blobs_url":"https://api.github.com/repos/grubastik/flat-search/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grubastik/flat-search/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grubastik/flat-search/git/refs{/sha}","trees_url":"https://api.github.com/repos/grubastik/flat-search/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grubastik/flat-search/statuses/{sha}","languages_url":"https://api.github.com/repos/grubastik/flat-search/languages","stargazers_url":"https://api.github.com/repos/grubastik/flat-search/stargazers","contributors_url":"https://api.github.com/repos/grubastik/flat-search/contributors","subscribers_url":"https://api.github.com/repos/grubastik/flat-search/subscribers","subscription_url":"https://api.github.com/repos/grubastik/flat-search/subscription","commits_url":"https://api.github.com/repos/grubastik/flat-search/commits{/sha}","git_commits_url":"https://api.github.com/repos/grubastik/flat-search/git/commits{/sha}","comments_url":"https://api.github.com/repos/grubastik/flat-search/comments{/number}","issue_comment_url":"https://api.github.com/repos/grubastik/flat-search/issues/comments{/number}","contents_url":"https://api.github.com/repos/grubastik/flat-search/contents/{+path}","compare_url":"https://api.github.com/repos/grubastik/flat-search/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grubastik/flat-search/merges","archive_url":"https://api.github.com/repos/grubastik/flat-search/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grubastik/flat-search/downloads","issues_url":"https://api.github.com/repos/grubastik/flat-search/issues{/number}","pulls_url":"https://api.github.com/repos/grubastik/flat-search/pulls{/number}","milestones_url":"https://api.github.com/repos/grubastik/flat-search/milestones{/number}","notifications_url":"https://api.github.com/repos/grubastik/flat-search/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grubastik/flat-search/labels{/name}","releases_url":"https://api.github.com/repos/grubastik/flat-search/releases{/id}","deployments_url":"https://api.github.com/repos/grubastik/flat-search/deployments","created_at":"2017-03-05T15:38:19Z","updated_at":"2017-03-06T11:56:47Z","pushed_at":"2017-03-06T11:57:40Z","git_url":"git://github.com/grubastik/flat-search.git","ssh_url":"git@github.com:grubastik/flat-search.git","clone_url":"https://github.com/grubastik/flat-search.git","svn_url":"https://github.com/grubastik/flat-search","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"grubastik:master","ref":"master","sha":"b05c012a998b281a41051edb106993558c167208","user":{"login":"grubastik","id":5111142,"avatar_url":"https://avatars3.githubusercontent.com/u/5111142?v=3","gravatar_id":"","url":"https://api.github.com/users/grubastik","html_url":"https://github.com/grubastik","followers_url":"https://api.github.com/users/grubastik/followers","following_url":"https://api.github.com/users/grubastik/following{/other_user}","gists_url":"https://api.github.com/users/grubastik/gists{/gist_id}","starred_url":"https://api.github.com/users/grubastik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grubastik/subscriptions","organizations_url":"https://api.github.com/users/grubastik/orgs","repos_url":"https://api.github.com/users/grubastik/repos","events_url":"https://api.github.com/users/grubastik/events{/privacy}","received_events_url":"https://api.github.com/users/grubastik/received_events","type":"User","site_admin":false},"repo":{"id":83981264,"name":"flat-search","full_name":"grubastik/flat-search","owner":{"login":"grubastik","id":5111142,"avatar_url":"https://avatars3.githubusercontent.com/u/5111142?v=3","gravatar_id":"","url":"https://api.github.com/users/grubastik","html_url":"https://github.com/grubastik","followers_url":"https://api.github.com/users/grubastik/followers","following_url":"https://api.github.com/users/grubastik/following{/other_user}","gists_url":"https://api.github.com/users/grubastik/gists{/gist_id}","starred_url":"https://api.github.com/users/grubastik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grubastik/subscriptions","organizations_url":"https://api.github.com/users/grubastik/orgs","repos_url":"https://api.github.com/users/grubastik/repos","events_url":"https://api.github.com/users/grubastik/events{/privacy}","received_events_url":"https://api.github.com/users/grubastik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/grubastik/flat-search","description":null,"fork":false,"url":"https://api.github.com/repos/grubastik/flat-search","forks_url":"https://api.github.com/repos/grubastik/flat-search/forks","keys_url":"https://api.github.com/repos/grubastik/flat-search/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grubastik/flat-search/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grubastik/flat-search/teams","hooks_url":"https://api.github.com/repos/grubastik/flat-search/hooks","issue_events_url":"https://api.github.com/repos/grubastik/flat-search/issues/events{/number}","events_url":"https://api.github.com/repos/grubastik/flat-search/events","assignees_url":"https://api.github.com/repos/grubastik/flat-search/assignees{/user}","branches_url":"https://api.github.com/repos/grubastik/flat-search/branches{/branch}","tags_url":"https://api.github.com/repos/grubastik/flat-search/tags","blobs_url":"https://api.github.com/repos/grubastik/flat-search/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grubastik/flat-search/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grubastik/flat-search/git/refs{/sha}","trees_url":"https://api.github.com/repos/grubastik/flat-search/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grubastik/flat-search/statuses/{sha}","languages_url":"https://api.github.com/repos/grubastik/flat-search/languages","stargazers_url":"https://api.github.com/repos/grubastik/flat-search/stargazers","contributors_url":"https://api.github.com/repos/grubastik/flat-search/contributors","subscribers_url":"https://api.github.com/repos/grubastik/flat-search/subscribers","subscription_url":"https://api.github.com/repos/grubastik/flat-search/subscription","commits_url":"https://api.github.com/repos/grubastik/flat-search/commits{/sha}","git_commits_url":"https://api.github.com/repos/grubastik/flat-search/git/commits{/sha}","comments_url":"https://api.github.com/repos/grubastik/flat-search/comments{/number}","issue_comment_url":"https://api.github.com/repos/grubastik/flat-search/issues/comments{/number}","contents_url":"https://api.github.com/repos/grubastik/flat-search/contents/{+path}","compare_url":"https://api.github.com/repos/grubastik/flat-search/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grubastik/flat-search/merges","archive_url":"https://api.github.com/repos/grubastik/flat-search/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grubastik/flat-search/downloads","issues_url":"https://api.github.com/repos/grubastik/flat-search/issues{/number}","pulls_url":"https://api.github.com/repos/grubastik/flat-search/pulls{/number}","milestones_url":"https://api.github.com/repos/grubastik/flat-search/milestones{/number}","notifications_url":"https://api.github.com/repos/grubastik/flat-search/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grubastik/flat-search/labels{/name}","releases_url":"https://api.github.com/repos/grubastik/flat-search/releases{/id}","deployments_url":"https://api.github.com/repos/grubastik/flat-search/deployments","created_at":"2017-03-05T15:38:19Z","updated_at":"2017-03-06T11:56:47Z","pushed_at":"2017-03-06T11:57:40Z","git_url":"git://github.com/grubastik/flat-search.git","ssh_url":"git@github.com:grubastik/flat-search.git","clone_url":"https://github.com/grubastik/flat-search.git","svn_url":"https://github.com/grubastik/flat-search","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/grubastik/flat-search/pulls/1"},"html":{"href":"https://github.com/grubastik/flat-search/pull/1"},"issue":{"href":"https://api.github.com/repos/grubastik/flat-search/issues/1"},"comments":{"href":"https://api.github.com/repos/grubastik/flat-search/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/grubastik/flat-search/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/grubastik/flat-search/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/grubastik/flat-search/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/grubastik/flat-search/statuses/0a101b04708d5fad975c62ec3bf10670e1fe14b5"}}}}
{"actor":{"display_login":"dkondratovych"}}