{"action":"created","comment":{"url":"https://api.github.com/repos/pangpanglabs/goutils/pulls/comments/157686264","pull_request_review_id":84368264,"id":157686264,"diff_hunk":"@@ -224,3 +228,12 @@ func NewNopContext() *LogContext {\n \t\tBizAttr: map[string]interface{}{},\n \t}\n }\n+func getTokenFromHeader(req *http.Request) string {\n+\tauth := req.Header.Get(HeaderAuthorization)\n+\thas := strings.HasPrefix(auth, \"Bearer \")\n+\ttoken := \"\"\n+\tif has == true {","path":"behaviorlog/behaviorlog.go","position":40,"original_position":40,"commit_id":"a8ce37d0e6d9f8b69219c068fb3760c555874546","original_commit_id":"a8ce37d0e6d9f8b69219c068fb3760c555874546","user":{"login":"jaehue","id":8924626,"avatar_url":"https://avatars1.githubusercontent.com/u/8924626?v=4","gravatar_id":"","url":"https://api.github.com/users/jaehue","html_url":"https://github.com/jaehue","followers_url":"https://api.github.com/users/jaehue/followers","following_url":"https://api.github.com/users/jaehue/following{/other_user}","gists_url":"https://api.github.com/users/jaehue/gists{/gist_id}","starred_url":"https://api.github.com/users/jaehue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaehue/subscriptions","organizations_url":"https://api.github.com/users/jaehue/orgs","repos_url":"https://api.github.com/users/jaehue/repos","events_url":"https://api.github.com/users/jaehue/events{/privacy}","received_events_url":"https://api.github.com/users/jaehue/received_events","type":"User","site_admin":false},"body":"@liche501  `true`는 불필요한 변수인 것 같습니다.\r\n233,235 두 라인을 아래와 같이 한번에 표현하는 것이 더 좋을 것 같습니다.\r\n```golang\r\nif strings.HasPrefix(auth, \"Bearer \") {\r\n```","created_at":"2017-12-19T08:13:52Z","updated_at":"2017-12-19T08:13:52Z","html_url":"https://github.com/pangpanglabs/goutils/pull/7#discussion_r157686264","pull_request_url":"https://api.github.com/repos/pangpanglabs/goutils/pulls/7","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/pangpanglabs/goutils/pulls/comments/157686264"},"html":{"href":"https://github.com/pangpanglabs/goutils/pull/7#discussion_r157686264"},"pull_request":{"href":"https://api.github.com/repos/pangpanglabs/goutils/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/pangpanglabs/goutils/pulls/7","id":159096807,"html_url":"https://github.com/pangpanglabs/goutils/pull/7","diff_url":"https://github.com/pangpanglabs/goutils/pull/7.diff","patch_url":"https://github.com/pangpanglabs/goutils/pull/7.patch","issue_url":"https://api.github.com/repos/pangpanglabs/goutils/issues/7","number":7,"state":"open","locked":false,"title":"LogContext add token field #6","user":{"login":"liche501","id":7875567,"avatar_url":"https://avatars3.githubusercontent.com/u/7875567?v=4","gravatar_id":"","url":"https://api.github.com/users/liche501","html_url":"https://github.com/liche501","followers_url":"https://api.github.com/users/liche501/followers","following_url":"https://api.github.com/users/liche501/following{/other_user}","gists_url":"https://api.github.com/users/liche501/gists{/gist_id}","starred_url":"https://api.github.com/users/liche501/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liche501/subscriptions","organizations_url":"https://api.github.com/users/liche501/orgs","repos_url":"https://api.github.com/users/liche501/repos","events_url":"https://api.github.com/users/liche501/events{/privacy}","received_events_url":"https://api.github.com/users/liche501/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-12-19T07:33:50Z","updated_at":"2017-12-19T08:13:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"07ba53c85ea433da83d792f1734c43783bdcc4a4","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/pangpanglabs/goutils/pulls/7/commits","review_comments_url":"https://api.github.com/repos/pangpanglabs/goutils/pulls/7/comments","review_comment_url":"https://api.github.com/repos/pangpanglabs/goutils/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pangpanglabs/goutils/issues/7/comments","statuses_url":"https://api.github.com/repos/pangpanglabs/goutils/statuses/a8ce37d0e6d9f8b69219c068fb3760c555874546","head":{"label":"liche501:6","ref":"6","sha":"a8ce37d0e6d9f8b69219c068fb3760c555874546","user":{"login":"liche501","id":7875567,"avatar_url":"https://avatars3.githubusercontent.com/u/7875567?v=4","gravatar_id":"","url":"https://api.github.com/users/liche501","html_url":"https://github.com/liche501","followers_url":"https://api.github.com/users/liche501/followers","following_url":"https://api.github.com/users/liche501/following{/other_user}","gists_url":"https://api.github.com/users/liche501/gists{/gist_id}","starred_url":"https://api.github.com/users/liche501/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liche501/subscriptions","organizations_url":"https://api.github.com/users/liche501/orgs","repos_url":"https://api.github.com/users/liche501/repos","events_url":"https://api.github.com/users/liche501/events{/privacy}","received_events_url":"https://api.github.com/users/liche501/received_events","type":"User","site_admin":false},"repo":{"id":114733624,"name":"goutils","full_name":"liche501/goutils","owner":{"login":"liche501","id":7875567,"avatar_url":"https://avatars3.githubusercontent.com/u/7875567?v=4","gravatar_id":"","url":"https://api.github.com/users/liche501","html_url":"https://github.com/liche501","followers_url":"https://api.github.com/users/liche501/followers","following_url":"https://api.github.com/users/liche501/following{/other_user}","gists_url":"https://api.github.com/users/liche501/gists{/gist_id}","starred_url":"https://api.github.com/users/liche501/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liche501/subscriptions","organizations_url":"https://api.github.com/users/liche501/orgs","repos_url":"https://api.github.com/users/liche501/repos","events_url":"https://api.github.com/users/liche501/events{/privacy}","received_events_url":"https://api.github.com/users/liche501/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/liche501/goutils","description":"Golang utility packages","fork":true,"url":"https://api.github.com/repos/liche501/goutils","forks_url":"https://api.github.com/repos/liche501/goutils/forks","keys_url":"https://api.github.com/repos/liche501/goutils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/liche501/goutils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/liche501/goutils/teams","hooks_url":"https://api.github.com/repos/liche501/goutils/hooks","issue_events_url":"https://api.github.com/repos/liche501/goutils/issues/events{/number}","events_url":"https://api.github.com/repos/liche501/goutils/events","assignees_url":"https://api.github.com/repos/liche501/goutils/assignees{/user}","branches_url":"https://api.github.com/repos/liche501/goutils/branches{/branch}","tags_url":"https://api.github.com/repos/liche501/goutils/tags","blobs_url":"https://api.github.com/repos/liche501/goutils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/liche501/goutils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/liche501/goutils/git/refs{/sha}","trees_url":"https://api.github.com/repos/liche501/goutils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/liche501/goutils/statuses/{sha}","languages_url":"https://api.github.com/repos/liche501/goutils/languages","stargazers_url":"https://api.github.com/repos/liche501/goutils/stargazers","contributors_url":"https://api.github.com/repos/liche501/goutils/contributors","subscribers_url":"https://api.github.com/repos/liche501/goutils/subscribers","subscription_url":"https://api.github.com/repos/liche501/goutils/subscription","commits_url":"https://api.github.com/repos/liche501/goutils/commits{/sha}","git_commits_url":"https://api.github.com/repos/liche501/goutils/git/commits{/sha}","comments_url":"https://api.github.com/repos/liche501/goutils/comments{/number}","issue_comment_url":"https://api.github.com/repos/liche501/goutils/issues/comments{/number}","contents_url":"https://api.github.com/repos/liche501/goutils/contents/{+path}","compare_url":"https://api.github.com/repos/liche501/goutils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/liche501/goutils/merges","archive_url":"https://api.github.com/repos/liche501/goutils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/liche501/goutils/downloads","issues_url":"https://api.github.com/repos/liche501/goutils/issues{/number}","pulls_url":"https://api.github.com/repos/liche501/goutils/pulls{/number}","milestones_url":"https://api.github.com/repos/liche501/goutils/milestones{/number}","notifications_url":"https://api.github.com/repos/liche501/goutils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/liche501/goutils/labels{/name}","releases_url":"https://api.github.com/repos/liche501/goutils/releases{/id}","deployments_url":"https://api.github.com/repos/liche501/goutils/deployments","created_at":"2017-12-19T07:31:45Z","updated_at":"2017-12-19T07:31:47Z","pushed_at":"2017-12-19T07:55:13Z","git_url":"git://github.com/liche501/goutils.git","ssh_url":"git@github.com:liche501/goutils.git","clone_url":"https://github.com/liche501/goutils.git","svn_url":"https://github.com/liche501/goutils","homepage":"","size":50,"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,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pangpanglabs:master","ref":"master","sha":"d2ddd4dcd672d6cbdb1c5f5c856cb7c9d8e706e0","user":{"login":"pangpanglabs","id":24514291,"avatar_url":"https://avatars1.githubusercontent.com/u/24514291?v=4","gravatar_id":"","url":"https://api.github.com/users/pangpanglabs","html_url":"https://github.com/pangpanglabs","followers_url":"https://api.github.com/users/pangpanglabs/followers","following_url":"https://api.github.com/users/pangpanglabs/following{/other_user}","gists_url":"https://api.github.com/users/pangpanglabs/gists{/gist_id}","starred_url":"https://api.github.com/users/pangpanglabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pangpanglabs/subscriptions","organizations_url":"https://api.github.com/users/pangpanglabs/orgs","repos_url":"https://api.github.com/users/pangpanglabs/repos","events_url":"https://api.github.com/users/pangpanglabs/events{/privacy}","received_events_url":"https://api.github.com/users/pangpanglabs/received_events","type":"Organization","site_admin":false},"repo":{"id":93367817,"name":"goutils","full_name":"pangpanglabs/goutils","owner":{"login":"pangpanglabs","id":24514291,"avatar_url":"https://avatars1.githubusercontent.com/u/24514291?v=4","gravatar_id":"","url":"https://api.github.com/users/pangpanglabs","html_url":"https://github.com/pangpanglabs","followers_url":"https://api.github.com/users/pangpanglabs/followers","following_url":"https://api.github.com/users/pangpanglabs/following{/other_user}","gists_url":"https://api.github.com/users/pangpanglabs/gists{/gist_id}","starred_url":"https://api.github.com/users/pangpanglabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pangpanglabs/subscriptions","organizations_url":"https://api.github.com/users/pangpanglabs/orgs","repos_url":"https://api.github.com/users/pangpanglabs/repos","events_url":"https://api.github.com/users/pangpanglabs/events{/privacy}","received_events_url":"https://api.github.com/users/pangpanglabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pangpanglabs/goutils","description":"Golang utility packages","fork":false,"url":"https://api.github.com/repos/pangpanglabs/goutils","forks_url":"https://api.github.com/repos/pangpanglabs/goutils/forks","keys_url":"https://api.github.com/repos/pangpanglabs/goutils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pangpanglabs/goutils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pangpanglabs/goutils/teams","hooks_url":"https://api.github.com/repos/pangpanglabs/goutils/hooks","issue_events_url":"https://api.github.com/repos/pangpanglabs/goutils/issues/events{/number}","events_url":"https://api.github.com/repos/pangpanglabs/goutils/events","assignees_url":"https://api.github.com/repos/pangpanglabs/goutils/assignees{/user}","branches_url":"https://api.github.com/repos/pangpanglabs/goutils/branches{/branch}","tags_url":"https://api.github.com/repos/pangpanglabs/goutils/tags","blobs_url":"https://api.github.com/repos/pangpanglabs/goutils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pangpanglabs/goutils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pangpanglabs/goutils/git/refs{/sha}","trees_url":"https://api.github.com/repos/pangpanglabs/goutils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pangpanglabs/goutils/statuses/{sha}","languages_url":"https://api.github.com/repos/pangpanglabs/goutils/languages","stargazers_url":"https://api.github.com/repos/pangpanglabs/goutils/stargazers","contributors_url":"https://api.github.com/repos/pangpanglabs/goutils/contributors","subscribers_url":"https://api.github.com/repos/pangpanglabs/goutils/subscribers","subscription_url":"https://api.github.com/repos/pangpanglabs/goutils/subscription","commits_url":"https://api.github.com/repos/pangpanglabs/goutils/commits{/sha}","git_commits_url":"https://api.github.com/repos/pangpanglabs/goutils/git/commits{/sha}","comments_url":"https://api.github.com/repos/pangpanglabs/goutils/comments{/number}","issue_comment_url":"https://api.github.com/repos/pangpanglabs/goutils/issues/comments{/number}","contents_url":"https://api.github.com/repos/pangpanglabs/goutils/contents/{+path}","compare_url":"https://api.github.com/repos/pangpanglabs/goutils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pangpanglabs/goutils/merges","archive_url":"https://api.github.com/repos/pangpanglabs/goutils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pangpanglabs/goutils/downloads","issues_url":"https://api.github.com/repos/pangpanglabs/goutils/issues{/number}","pulls_url":"https://api.github.com/repos/pangpanglabs/goutils/pulls{/number}","milestones_url":"https://api.github.com/repos/pangpanglabs/goutils/milestones{/number}","notifications_url":"https://api.github.com/repos/pangpanglabs/goutils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pangpanglabs/goutils/labels{/name}","releases_url":"https://api.github.com/repos/pangpanglabs/goutils/releases{/id}","deployments_url":"https://api.github.com/repos/pangpanglabs/goutils/deployments","created_at":"2017-06-05T05:20:51Z","updated_at":"2017-10-30T08:49:36Z","pushed_at":"2017-12-19T07:55:15Z","git_url":"git://github.com/pangpanglabs/goutils.git","ssh_url":"git@github.com:pangpanglabs/goutils.git","clone_url":"https://github.com/pangpanglabs/goutils.git","svn_url":"https://github.com/pangpanglabs/goutils","homepage":"","size":50,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":2,"open_issues":5,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pangpanglabs/goutils/pulls/7"},"html":{"href":"https://github.com/pangpanglabs/goutils/pull/7"},"issue":{"href":"https://api.github.com/repos/pangpanglabs/goutils/issues/7"},"comments":{"href":"https://api.github.com/repos/pangpanglabs/goutils/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/pangpanglabs/goutils/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/pangpanglabs/goutils/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pangpanglabs/goutils/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/pangpanglabs/goutils/statuses/a8ce37d0e6d9f8b69219c068fb3760c555874546"}},"author_association":"NONE"}}
{"actor":{"display_login":"jaehue"}}