{"action":"created","comment":{"url":"https://api.github.com/repos/arbrix/golearning/pulls/comments/114657055","pull_request_review_id":36140497,"id":114657055,"diff_hunk":"@@ -0,0 +1,69 @@\n+package main\n+\n+import (\n+\t\"bufio\"\n+\t\"fmt\"\n+\t\"github.com/gorilla/mux\"\n+\t\"net/http\"\n+\t\"os\"\n+\n+\t\"encoding/json\"\n+\t\"strconv\"\n+\"errors\"\n+)\n+\n+type DataStr struct {\n+\tTitle string `json:\"title\"`\n+\tLines string `json:\"lines\"`\n+}\n+\n+func CountLines(folder string) (string, error) {\n+\tf, err := os.Open(folder)\n+\tif err != nil {\n+\t\treturn \"\", errors.New(\"Can't open the file\")\n+\t}\n+\n+\tdefer f.Close()\n+\n+\tScanF := bufio.NewScanner(f)\n+\n+\tc := 0\n+\tfor ScanF.Scan() {\n+\t\tc += 1\n+\t}\n+\treturn strconv.Itoa(c), nil\n+}\n+\n+func BookHandler(w http.ResponseWriter, r *http.Request) {\n+\tData := DataStr{}\n+\n+\tfolder := os.Args[1]","path":"httplinecount/httplinecount.go","position":40,"original_position":40,"commit_id":"c735dbe0ae9e82a2e308392a2a884f406d015c21","original_commit_id":"c735dbe0ae9e82a2e308392a2a884f406d015c21","user":{"login":"arbrix","id":811486,"avatar_url":"https://avatars3.githubusercontent.com/u/811486?v=3","gravatar_id":"","url":"https://api.github.com/users/arbrix","html_url":"https://github.com/arbrix","followers_url":"https://api.github.com/users/arbrix/followers","following_url":"https://api.github.com/users/arbrix/following{/other_user}","gists_url":"https://api.github.com/users/arbrix/gists{/gist_id}","starred_url":"https://api.github.com/users/arbrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbrix/subscriptions","organizations_url":"https://api.github.com/users/arbrix/orgs","repos_url":"https://api.github.com/users/arbrix/repos","events_url":"https://api.github.com/users/arbrix/events{/privacy}","received_events_url":"https://api.github.com/users/arbrix/received_events","type":"User","site_admin":false},"body":"what if client forgot to add this parameter?","created_at":"2017-05-03T21:22:13Z","updated_at":"2017-05-03T21:39:57Z","html_url":"https://github.com/arbrix/golearning/pull/1#discussion_r114657055","pull_request_url":"https://api.github.com/repos/arbrix/golearning/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/arbrix/golearning/pulls/comments/114657055"},"html":{"href":"https://github.com/arbrix/golearning/pull/1#discussion_r114657055"},"pull_request":{"href":"https://api.github.com/repos/arbrix/golearning/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/arbrix/golearning/pulls/1","id":118856051,"html_url":"https://github.com/arbrix/golearning/pull/1","diff_url":"https://github.com/arbrix/golearning/pull/1.diff","patch_url":"https://github.com/arbrix/golearning/pull/1.patch","issue_url":"https://api.github.com/repos/arbrix/golearning/issues/1","number":1,"state":"open","locked":false,"title":"in the review purpose","user":{"login":"arbrix","id":811486,"avatar_url":"https://avatars3.githubusercontent.com/u/811486?v=3","gravatar_id":"","url":"https://api.github.com/users/arbrix","html_url":"https://github.com/arbrix","followers_url":"https://api.github.com/users/arbrix/followers","following_url":"https://api.github.com/users/arbrix/following{/other_user}","gists_url":"https://api.github.com/users/arbrix/gists{/gist_id}","starred_url":"https://api.github.com/users/arbrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbrix/subscriptions","organizations_url":"https://api.github.com/users/arbrix/orgs","repos_url":"https://api.github.com/users/arbrix/repos","events_url":"https://api.github.com/users/arbrix/events{/privacy}","received_events_url":"https://api.github.com/users/arbrix/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-03T21:12:14Z","updated_at":"2017-05-03T21:39:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"60c3b5ab6276d84e77e03515e48ddf929c849300","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/arbrix/golearning/pulls/1/commits","review_comments_url":"https://api.github.com/repos/arbrix/golearning/pulls/1/comments","review_comment_url":"https://api.github.com/repos/arbrix/golearning/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arbrix/golearning/issues/1/comments","statuses_url":"https://api.github.com/repos/arbrix/golearning/statuses/c735dbe0ae9e82a2e308392a2a884f406d015c21","head":{"label":"arbrix:master","ref":"master","sha":"c735dbe0ae9e82a2e308392a2a884f406d015c21","user":{"login":"arbrix","id":811486,"avatar_url":"https://avatars3.githubusercontent.com/u/811486?v=3","gravatar_id":"","url":"https://api.github.com/users/arbrix","html_url":"https://github.com/arbrix","followers_url":"https://api.github.com/users/arbrix/followers","following_url":"https://api.github.com/users/arbrix/following{/other_user}","gists_url":"https://api.github.com/users/arbrix/gists{/gist_id}","starred_url":"https://api.github.com/users/arbrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbrix/subscriptions","organizations_url":"https://api.github.com/users/arbrix/orgs","repos_url":"https://api.github.com/users/arbrix/repos","events_url":"https://api.github.com/users/arbrix/events{/privacy}","received_events_url":"https://api.github.com/users/arbrix/received_events","type":"User","site_admin":false},"repo":{"id":90193550,"name":"golearning","full_name":"arbrix/golearning","owner":{"login":"arbrix","id":811486,"avatar_url":"https://avatars3.githubusercontent.com/u/811486?v=3","gravatar_id":"","url":"https://api.github.com/users/arbrix","html_url":"https://github.com/arbrix","followers_url":"https://api.github.com/users/arbrix/followers","following_url":"https://api.github.com/users/arbrix/following{/other_user}","gists_url":"https://api.github.com/users/arbrix/gists{/gist_id}","starred_url":"https://api.github.com/users/arbrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbrix/subscriptions","organizations_url":"https://api.github.com/users/arbrix/orgs","repos_url":"https://api.github.com/users/arbrix/repos","events_url":"https://api.github.com/users/arbrix/events{/privacy}","received_events_url":"https://api.github.com/users/arbrix/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arbrix/golearning","description":null,"fork":true,"url":"https://api.github.com/repos/arbrix/golearning","forks_url":"https://api.github.com/repos/arbrix/golearning/forks","keys_url":"https://api.github.com/repos/arbrix/golearning/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arbrix/golearning/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arbrix/golearning/teams","hooks_url":"https://api.github.com/repos/arbrix/golearning/hooks","issue_events_url":"https://api.github.com/repos/arbrix/golearning/issues/events{/number}","events_url":"https://api.github.com/repos/arbrix/golearning/events","assignees_url":"https://api.github.com/repos/arbrix/golearning/assignees{/user}","branches_url":"https://api.github.com/repos/arbrix/golearning/branches{/branch}","tags_url":"https://api.github.com/repos/arbrix/golearning/tags","blobs_url":"https://api.github.com/repos/arbrix/golearning/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arbrix/golearning/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arbrix/golearning/git/refs{/sha}","trees_url":"https://api.github.com/repos/arbrix/golearning/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arbrix/golearning/statuses/{sha}","languages_url":"https://api.github.com/repos/arbrix/golearning/languages","stargazers_url":"https://api.github.com/repos/arbrix/golearning/stargazers","contributors_url":"https://api.github.com/repos/arbrix/golearning/contributors","subscribers_url":"https://api.github.com/repos/arbrix/golearning/subscribers","subscription_url":"https://api.github.com/repos/arbrix/golearning/subscription","commits_url":"https://api.github.com/repos/arbrix/golearning/commits{/sha}","git_commits_url":"https://api.github.com/repos/arbrix/golearning/git/commits{/sha}","comments_url":"https://api.github.com/repos/arbrix/golearning/comments{/number}","issue_comment_url":"https://api.github.com/repos/arbrix/golearning/issues/comments{/number}","contents_url":"https://api.github.com/repos/arbrix/golearning/contents/{+path}","compare_url":"https://api.github.com/repos/arbrix/golearning/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arbrix/golearning/merges","archive_url":"https://api.github.com/repos/arbrix/golearning/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arbrix/golearning/downloads","issues_url":"https://api.github.com/repos/arbrix/golearning/issues{/number}","pulls_url":"https://api.github.com/repos/arbrix/golearning/pulls{/number}","milestones_url":"https://api.github.com/repos/arbrix/golearning/milestones{/number}","notifications_url":"https://api.github.com/repos/arbrix/golearning/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arbrix/golearning/labels{/name}","releases_url":"https://api.github.com/repos/arbrix/golearning/releases{/id}","deployments_url":"https://api.github.com/repos/arbrix/golearning/deployments","created_at":"2017-05-03T21:08:09Z","updated_at":"2017-05-03T21:08:11Z","pushed_at":"2017-05-03T21:12:15Z","git_url":"git://github.com/arbrix/golearning.git","ssh_url":"git@github.com:arbrix/golearning.git","clone_url":"https://github.com/arbrix/golearning.git","svn_url":"https://github.com/arbrix/golearning","homepage":null,"size":1589,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":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":"arbrix:review","ref":"review","sha":"f19fd203339bdad8de4f83650b4e55836dc177c2","user":{"login":"arbrix","id":811486,"avatar_url":"https://avatars3.githubusercontent.com/u/811486?v=3","gravatar_id":"","url":"https://api.github.com/users/arbrix","html_url":"https://github.com/arbrix","followers_url":"https://api.github.com/users/arbrix/followers","following_url":"https://api.github.com/users/arbrix/following{/other_user}","gists_url":"https://api.github.com/users/arbrix/gists{/gist_id}","starred_url":"https://api.github.com/users/arbrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbrix/subscriptions","organizations_url":"https://api.github.com/users/arbrix/orgs","repos_url":"https://api.github.com/users/arbrix/repos","events_url":"https://api.github.com/users/arbrix/events{/privacy}","received_events_url":"https://api.github.com/users/arbrix/received_events","type":"User","site_admin":false},"repo":{"id":90193550,"name":"golearning","full_name":"arbrix/golearning","owner":{"login":"arbrix","id":811486,"avatar_url":"https://avatars3.githubusercontent.com/u/811486?v=3","gravatar_id":"","url":"https://api.github.com/users/arbrix","html_url":"https://github.com/arbrix","followers_url":"https://api.github.com/users/arbrix/followers","following_url":"https://api.github.com/users/arbrix/following{/other_user}","gists_url":"https://api.github.com/users/arbrix/gists{/gist_id}","starred_url":"https://api.github.com/users/arbrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbrix/subscriptions","organizations_url":"https://api.github.com/users/arbrix/orgs","repos_url":"https://api.github.com/users/arbrix/repos","events_url":"https://api.github.com/users/arbrix/events{/privacy}","received_events_url":"https://api.github.com/users/arbrix/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arbrix/golearning","description":null,"fork":true,"url":"https://api.github.com/repos/arbrix/golearning","forks_url":"https://api.github.com/repos/arbrix/golearning/forks","keys_url":"https://api.github.com/repos/arbrix/golearning/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arbrix/golearning/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arbrix/golearning/teams","hooks_url":"https://api.github.com/repos/arbrix/golearning/hooks","issue_events_url":"https://api.github.com/repos/arbrix/golearning/issues/events{/number}","events_url":"https://api.github.com/repos/arbrix/golearning/events","assignees_url":"https://api.github.com/repos/arbrix/golearning/assignees{/user}","branches_url":"https://api.github.com/repos/arbrix/golearning/branches{/branch}","tags_url":"https://api.github.com/repos/arbrix/golearning/tags","blobs_url":"https://api.github.com/repos/arbrix/golearning/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arbrix/golearning/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arbrix/golearning/git/refs{/sha}","trees_url":"https://api.github.com/repos/arbrix/golearning/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arbrix/golearning/statuses/{sha}","languages_url":"https://api.github.com/repos/arbrix/golearning/languages","stargazers_url":"https://api.github.com/repos/arbrix/golearning/stargazers","contributors_url":"https://api.github.com/repos/arbrix/golearning/contributors","subscribers_url":"https://api.github.com/repos/arbrix/golearning/subscribers","subscription_url":"https://api.github.com/repos/arbrix/golearning/subscription","commits_url":"https://api.github.com/repos/arbrix/golearning/commits{/sha}","git_commits_url":"https://api.github.com/repos/arbrix/golearning/git/commits{/sha}","comments_url":"https://api.github.com/repos/arbrix/golearning/comments{/number}","issue_comment_url":"https://api.github.com/repos/arbrix/golearning/issues/comments{/number}","contents_url":"https://api.github.com/repos/arbrix/golearning/contents/{+path}","compare_url":"https://api.github.com/repos/arbrix/golearning/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arbrix/golearning/merges","archive_url":"https://api.github.com/repos/arbrix/golearning/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arbrix/golearning/downloads","issues_url":"https://api.github.com/repos/arbrix/golearning/issues{/number}","pulls_url":"https://api.github.com/repos/arbrix/golearning/pulls{/number}","milestones_url":"https://api.github.com/repos/arbrix/golearning/milestones{/number}","notifications_url":"https://api.github.com/repos/arbrix/golearning/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arbrix/golearning/labels{/name}","releases_url":"https://api.github.com/repos/arbrix/golearning/releases{/id}","deployments_url":"https://api.github.com/repos/arbrix/golearning/deployments","created_at":"2017-05-03T21:08:09Z","updated_at":"2017-05-03T21:08:11Z","pushed_at":"2017-05-03T21:12:15Z","git_url":"git://github.com/arbrix/golearning.git","ssh_url":"git@github.com:arbrix/golearning.git","clone_url":"https://github.com/arbrix/golearning.git","svn_url":"https://github.com/arbrix/golearning","homepage":null,"size":1589,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":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/arbrix/golearning/pulls/1"},"html":{"href":"https://github.com/arbrix/golearning/pull/1"},"issue":{"href":"https://api.github.com/repos/arbrix/golearning/issues/1"},"comments":{"href":"https://api.github.com/repos/arbrix/golearning/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/arbrix/golearning/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/arbrix/golearning/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arbrix/golearning/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/arbrix/golearning/statuses/c735dbe0ae9e82a2e308392a2a884f406d015c21"}}}}
{"actor":{"display_login":"arbrix"}}