{"action":"created","comment":{"url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/pulls/comments/224972821","pull_request_review_id":164477386,"id":224972821,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDk3MjgyMQ==","diff_hunk":"@@ -25,7 +25,7 @@ func New(svc *pkgAws.Session, endpoint string) (*S3, error) {\n \t\treturn nil, newSvcErr\n \t}\n \n-\ts3Svc := new(S3)\n+\ts3Svc := &S3{}","path":"pkg/aws/s3/session.go","position":5,"original_position":5,"commit_id":"5714568251c3d2d58c954540031942304af6d944","original_commit_id":"5714568251c3d2d58c954540031942304af6d944","user":{"login":"AndreaM16","id":6943457,"node_id":"MDQ6VXNlcjY5NDM0NTc=","avatar_url":"https://avatars1.githubusercontent.com/u/6943457?v=4","gravatar_id":"","url":"https://api.github.com/users/AndreaM16","html_url":"https://github.com/AndreaM16","followers_url":"https://api.github.com/users/AndreaM16/followers","following_url":"https://api.github.com/users/AndreaM16/following{/other_user}","gists_url":"https://api.github.com/users/AndreaM16/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreaM16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreaM16/subscriptions","organizations_url":"https://api.github.com/users/AndreaM16/orgs","repos_url":"https://api.github.com/users/AndreaM16/repos","events_url":"https://api.github.com/users/AndreaM16/events{/privacy}","received_events_url":"https://api.github.com/users/AndreaM16/received_events","type":"User","site_admin":false},"body":"Same as above.","created_at":"2018-10-13T21:38:54Z","updated_at":"2018-10-13T21:38:55Z","html_url":"https://github.com/AndreaM16/aws-sdk-go-bindings/pull/11#discussion_r224972821","pull_request_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/pulls/11","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/pulls/comments/224972821"},"html":{"href":"https://github.com/AndreaM16/aws-sdk-go-bindings/pull/11#discussion_r224972821"},"pull_request":{"href":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/pulls/11","id":222677105,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyNjc3MTA1","html_url":"https://github.com/AndreaM16/aws-sdk-go-bindings/pull/11","diff_url":"https://github.com/AndreaM16/aws-sdk-go-bindings/pull/11.diff","patch_url":"https://github.com/AndreaM16/aws-sdk-go-bindings/pull/11.patch","issue_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/issues/11","number":11,"state":"open","locked":false,"title":"Stop using new(T); Start using &T{} #10","user":{"login":"karmakaze","id":318225,"node_id":"MDQ6VXNlcjMxODIyNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/318225?v=4","gravatar_id":"","url":"https://api.github.com/users/karmakaze","html_url":"https://github.com/karmakaze","followers_url":"https://api.github.com/users/karmakaze/followers","following_url":"https://api.github.com/users/karmakaze/following{/other_user}","gists_url":"https://api.github.com/users/karmakaze/gists{/gist_id}","starred_url":"https://api.github.com/users/karmakaze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karmakaze/subscriptions","organizations_url":"https://api.github.com/users/karmakaze/orgs","repos_url":"https://api.github.com/users/karmakaze/repos","events_url":"https://api.github.com/users/karmakaze/events{/privacy}","received_events_url":"https://api.github.com/users/karmakaze/received_events","type":"User","site_admin":false},"body":"I just ran:\r\n```\r\nfor x in `find . -name \\*.go`; do sed -i '' -e 's/new(\\([^)]*\\))/\\&\\1{}/' $x; done\r\n```\r\n\r\nThere was one that wasn't changed:\r\n```\r\npkg/aws/dynamodb/service.go:\r\n-       out := new(GetItemOutput)\r\n+       out := &GetItemOutput{}\r\n```\r\n\r\nResults in the error . messge ` invalid pointer type *GetItemOutput for composite literal`.","created_at":"2018-10-13T21:27:29Z","updated_at":"2018-10-13T21:38:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f618e80853f1bbdf420822a4b986ea3e46a3403b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/pulls/11/commits","review_comments_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/pulls/11/comments","review_comment_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/issues/11/comments","statuses_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/statuses/5714568251c3d2d58c954540031942304af6d944","head":{"label":"karmakaze:master","ref":"master","sha":"5714568251c3d2d58c954540031942304af6d944","user":{"login":"karmakaze","id":318225,"node_id":"MDQ6VXNlcjMxODIyNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/318225?v=4","gravatar_id":"","url":"https://api.github.com/users/karmakaze","html_url":"https://github.com/karmakaze","followers_url":"https://api.github.com/users/karmakaze/followers","following_url":"https://api.github.com/users/karmakaze/following{/other_user}","gists_url":"https://api.github.com/users/karmakaze/gists{/gist_id}","starred_url":"https://api.github.com/users/karmakaze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karmakaze/subscriptions","organizations_url":"https://api.github.com/users/karmakaze/orgs","repos_url":"https://api.github.com/users/karmakaze/repos","events_url":"https://api.github.com/users/karmakaze/events{/privacy}","received_events_url":"https://api.github.com/users/karmakaze/received_events","type":"User","site_admin":false},"repo":{"id":152914051,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI5MTQwNTE=","name":"aws-sdk-go-bindings","full_name":"karmakaze/aws-sdk-go-bindings","private":false,"owner":{"login":"karmakaze","id":318225,"node_id":"MDQ6VXNlcjMxODIyNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/318225?v=4","gravatar_id":"","url":"https://api.github.com/users/karmakaze","html_url":"https://github.com/karmakaze","followers_url":"https://api.github.com/users/karmakaze/followers","following_url":"https://api.github.com/users/karmakaze/following{/other_user}","gists_url":"https://api.github.com/users/karmakaze/gists{/gist_id}","starred_url":"https://api.github.com/users/karmakaze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karmakaze/subscriptions","organizations_url":"https://api.github.com/users/karmakaze/orgs","repos_url":"https://api.github.com/users/karmakaze/repos","events_url":"https://api.github.com/users/karmakaze/events{/privacy}","received_events_url":"https://api.github.com/users/karmakaze/received_events","type":"User","site_admin":false},"html_url":"https://github.com/karmakaze/aws-sdk-go-bindings","description":"Helper package to easily access some aws-sdk-go's methods (SNS, SQS, DynamoDB, Rekognition, S3)","fork":true,"url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings","forks_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/forks","keys_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/keys{/key_id}","collaborators_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/teams","hooks_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/hooks","issue_events_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/issues/events{/number}","events_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/events","assignees_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/assignees{/user}","branches_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/branches{/branch}","tags_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/tags","blobs_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/git/refs{/sha}","trees_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/git/trees{/sha}","statuses_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/statuses/{sha}","languages_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/languages","stargazers_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/stargazers","contributors_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/contributors","subscribers_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/subscribers","subscription_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/subscription","commits_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/commits{/sha}","git_commits_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/git/commits{/sha}","comments_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/comments{/number}","issue_comment_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/issues/comments{/number}","contents_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/contents/{+path}","compare_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/compare/{base}...{head}","merges_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/merges","archive_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/downloads","issues_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/issues{/number}","pulls_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/pulls{/number}","milestones_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/milestones{/number}","notifications_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/labels{/name}","releases_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/releases{/id}","deployments_url":"https://api.github.com/repos/karmakaze/aws-sdk-go-bindings/deployments","created_at":"2018-10-13T21:00:20Z","updated_at":"2018-10-13T21:23:31Z","pushed_at":"2018-10-13T21:23:29Z","git_url":"git://github.com/karmakaze/aws-sdk-go-bindings.git","ssh_url":"git@github.com:karmakaze/aws-sdk-go-bindings.git","clone_url":"https://github.com/karmakaze/aws-sdk-go-bindings.git","svn_url":"https://github.com/karmakaze/aws-sdk-go-bindings","homepage":"","size":276,"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":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"AndreaM16:master","ref":"master","sha":"0f696ee307e90d83958ab559c94f155adf3144fb","user":{"login":"AndreaM16","id":6943457,"node_id":"MDQ6VXNlcjY5NDM0NTc=","avatar_url":"https://avatars1.githubusercontent.com/u/6943457?v=4","gravatar_id":"","url":"https://api.github.com/users/AndreaM16","html_url":"https://github.com/AndreaM16","followers_url":"https://api.github.com/users/AndreaM16/followers","following_url":"https://api.github.com/users/AndreaM16/following{/other_user}","gists_url":"https://api.github.com/users/AndreaM16/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreaM16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreaM16/subscriptions","organizations_url":"https://api.github.com/users/AndreaM16/orgs","repos_url":"https://api.github.com/users/AndreaM16/repos","events_url":"https://api.github.com/users/AndreaM16/events{/privacy}","received_events_url":"https://api.github.com/users/AndreaM16/received_events","type":"User","site_admin":false},"repo":{"id":137505095,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc1MDUwOTU=","name":"aws-sdk-go-bindings","full_name":"AndreaM16/aws-sdk-go-bindings","private":false,"owner":{"login":"AndreaM16","id":6943457,"node_id":"MDQ6VXNlcjY5NDM0NTc=","avatar_url":"https://avatars1.githubusercontent.com/u/6943457?v=4","gravatar_id":"","url":"https://api.github.com/users/AndreaM16","html_url":"https://github.com/AndreaM16","followers_url":"https://api.github.com/users/AndreaM16/followers","following_url":"https://api.github.com/users/AndreaM16/following{/other_user}","gists_url":"https://api.github.com/users/AndreaM16/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreaM16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreaM16/subscriptions","organizations_url":"https://api.github.com/users/AndreaM16/orgs","repos_url":"https://api.github.com/users/AndreaM16/repos","events_url":"https://api.github.com/users/AndreaM16/events{/privacy}","received_events_url":"https://api.github.com/users/AndreaM16/received_events","type":"User","site_admin":false},"html_url":"https://github.com/AndreaM16/aws-sdk-go-bindings","description":"Helper package to easily access some aws-sdk-go's methods (SNS, SQS, DynamoDB, Rekognition, S3)","fork":false,"url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings","forks_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/forks","keys_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/teams","hooks_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/hooks","issue_events_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/issues/events{/number}","events_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/events","assignees_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/assignees{/user}","branches_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/branches{/branch}","tags_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/tags","blobs_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/git/refs{/sha}","trees_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/statuses/{sha}","languages_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/languages","stargazers_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/stargazers","contributors_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/contributors","subscribers_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/subscribers","subscription_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/subscription","commits_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/commits{/sha}","git_commits_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/git/commits{/sha}","comments_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/comments{/number}","issue_comment_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/issues/comments{/number}","contents_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/contents/{+path}","compare_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/merges","archive_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/downloads","issues_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/issues{/number}","pulls_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/pulls{/number}","milestones_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/milestones{/number}","notifications_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/labels{/name}","releases_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/releases{/id}","deployments_url":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/deployments","created_at":"2018-06-15T15:40:21Z","updated_at":"2018-10-13T18:28:00Z","pushed_at":"2018-10-13T21:27:30Z","git_url":"git://github.com/AndreaM16/aws-sdk-go-bindings.git","ssh_url":"git@github.com:AndreaM16/aws-sdk-go-bindings.git","clone_url":"https://github.com/AndreaM16/aws-sdk-go-bindings.git","svn_url":"https://github.com/AndreaM16/aws-sdk-go-bindings","homepage":"","size":276,"stargazers_count":6,"watchers_count":6,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":4,"open_issues":8,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/pulls/11"},"html":{"href":"https://github.com/AndreaM16/aws-sdk-go-bindings/pull/11"},"issue":{"href":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/issues/11"},"comments":{"href":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/AndreaM16/aws-sdk-go-bindings/statuses/5714568251c3d2d58c954540031942304af6d944"}},"author_association":"NONE"}}
{"actor":{"display_login":"AndreaM16"}}