{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/t-k/ar2gostruct/pulls/2","id":42546599,"html_url":"https://github.com/t-k/ar2gostruct/pull/2","diff_url":"https://github.com/t-k/ar2gostruct/pull/2.diff","patch_url":"https://github.com/t-k/ar2gostruct/pull/2.patch","issue_url":"https://api.github.com/repos/t-k/ar2gostruct/issues/2","number":2,"state":"open","locked":false,"title":"add a --package flag ","user":{"login":"neophiliac","id":22564,"avatar_url":"https://avatars.githubusercontent.com/u/22564?v=3","gravatar_id":"","url":"https://api.github.com/users/neophiliac","html_url":"https://github.com/neophiliac","followers_url":"https://api.github.com/users/neophiliac/followers","following_url":"https://api.github.com/users/neophiliac/following{/other_user}","gists_url":"https://api.github.com/users/neophiliac/gists{/gist_id}","starred_url":"https://api.github.com/users/neophiliac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neophiliac/subscriptions","organizations_url":"https://api.github.com/users/neophiliac/orgs","repos_url":"https://api.github.com/users/neophiliac/repos","events_url":"https://api.github.com/users/neophiliac/events{/privacy}","received_events_url":"https://api.github.com/users/neophiliac/received_events","type":"User","site_admin":false},"body":"This writes a package name at the beginning of the output. Now I can take the output of ar2gostruct and import it into my go code without any manual steps (except maybe adding imports as required for types in the structs).","created_at":"2015-08-17T00:21:01Z","updated_at":"2015-08-17T00:21:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/t-k/ar2gostruct/pulls/2/commits","review_comments_url":"https://api.github.com/repos/t-k/ar2gostruct/pulls/2/comments","review_comment_url":"https://api.github.com/repos/t-k/ar2gostruct/pulls/comments{/number}","comments_url":"https://api.github.com/repos/t-k/ar2gostruct/issues/2/comments","statuses_url":"https://api.github.com/repos/t-k/ar2gostruct/statuses/88122b431f32e097a80c8cd0931876aba8801445","head":{"label":"neophiliac:master","ref":"master","sha":"88122b431f32e097a80c8cd0931876aba8801445","user":{"login":"neophiliac","id":22564,"avatar_url":"https://avatars.githubusercontent.com/u/22564?v=3","gravatar_id":"","url":"https://api.github.com/users/neophiliac","html_url":"https://github.com/neophiliac","followers_url":"https://api.github.com/users/neophiliac/followers","following_url":"https://api.github.com/users/neophiliac/following{/other_user}","gists_url":"https://api.github.com/users/neophiliac/gists{/gist_id}","starred_url":"https://api.github.com/users/neophiliac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neophiliac/subscriptions","organizations_url":"https://api.github.com/users/neophiliac/orgs","repos_url":"https://api.github.com/users/neophiliac/repos","events_url":"https://api.github.com/users/neophiliac/events{/privacy}","received_events_url":"https://api.github.com/users/neophiliac/received_events","type":"User","site_admin":false},"repo":{"id":40068124,"name":"ar2gostruct","full_name":"neophiliac/ar2gostruct","owner":{"login":"neophiliac","id":22564,"avatar_url":"https://avatars.githubusercontent.com/u/22564?v=3","gravatar_id":"","url":"https://api.github.com/users/neophiliac","html_url":"https://github.com/neophiliac","followers_url":"https://api.github.com/users/neophiliac/followers","following_url":"https://api.github.com/users/neophiliac/following{/other_user}","gists_url":"https://api.github.com/users/neophiliac/gists{/gist_id}","starred_url":"https://api.github.com/users/neophiliac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neophiliac/subscriptions","organizations_url":"https://api.github.com/users/neophiliac/orgs","repos_url":"https://api.github.com/users/neophiliac/repos","events_url":"https://api.github.com/users/neophiliac/events{/privacy}","received_events_url":"https://api.github.com/users/neophiliac/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/neophiliac/ar2gostruct","description":"Generate Go (golang) Struct from activerecord models","fork":true,"url":"https://api.github.com/repos/neophiliac/ar2gostruct","forks_url":"https://api.github.com/repos/neophiliac/ar2gostruct/forks","keys_url":"https://api.github.com/repos/neophiliac/ar2gostruct/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neophiliac/ar2gostruct/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neophiliac/ar2gostruct/teams","hooks_url":"https://api.github.com/repos/neophiliac/ar2gostruct/hooks","issue_events_url":"https://api.github.com/repos/neophiliac/ar2gostruct/issues/events{/number}","events_url":"https://api.github.com/repos/neophiliac/ar2gostruct/events","assignees_url":"https://api.github.com/repos/neophiliac/ar2gostruct/assignees{/user}","branches_url":"https://api.github.com/repos/neophiliac/ar2gostruct/branches{/branch}","tags_url":"https://api.github.com/repos/neophiliac/ar2gostruct/tags","blobs_url":"https://api.github.com/repos/neophiliac/ar2gostruct/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neophiliac/ar2gostruct/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neophiliac/ar2gostruct/git/refs{/sha}","trees_url":"https://api.github.com/repos/neophiliac/ar2gostruct/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neophiliac/ar2gostruct/statuses/{sha}","languages_url":"https://api.github.com/repos/neophiliac/ar2gostruct/languages","stargazers_url":"https://api.github.com/repos/neophiliac/ar2gostruct/stargazers","contributors_url":"https://api.github.com/repos/neophiliac/ar2gostruct/contributors","subscribers_url":"https://api.github.com/repos/neophiliac/ar2gostruct/subscribers","subscription_url":"https://api.github.com/repos/neophiliac/ar2gostruct/subscription","commits_url":"https://api.github.com/repos/neophiliac/ar2gostruct/commits{/sha}","git_commits_url":"https://api.github.com/repos/neophiliac/ar2gostruct/git/commits{/sha}","comments_url":"https://api.github.com/repos/neophiliac/ar2gostruct/comments{/number}","issue_comment_url":"https://api.github.com/repos/neophiliac/ar2gostruct/issues/comments{/number}","contents_url":"https://api.github.com/repos/neophiliac/ar2gostruct/contents/{+path}","compare_url":"https://api.github.com/repos/neophiliac/ar2gostruct/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neophiliac/ar2gostruct/merges","archive_url":"https://api.github.com/repos/neophiliac/ar2gostruct/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neophiliac/ar2gostruct/downloads","issues_url":"https://api.github.com/repos/neophiliac/ar2gostruct/issues{/number}","pulls_url":"https://api.github.com/repos/neophiliac/ar2gostruct/pulls{/number}","milestones_url":"https://api.github.com/repos/neophiliac/ar2gostruct/milestones{/number}","notifications_url":"https://api.github.com/repos/neophiliac/ar2gostruct/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neophiliac/ar2gostruct/labels{/name}","releases_url":"https://api.github.com/repos/neophiliac/ar2gostruct/releases{/id}","created_at":"2015-08-02T03:51:36Z","updated_at":"2015-08-02T03:51:36Z","pushed_at":"2015-08-17T00:13:30Z","git_url":"git://github.com/neophiliac/ar2gostruct.git","ssh_url":"git@github.com:neophiliac/ar2gostruct.git","clone_url":"https://github.com/neophiliac/ar2gostruct.git","svn_url":"https://github.com/neophiliac/ar2gostruct","homepage":"https://rubygems.org/gems/ar2gostruct","size":108,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"t-k:master","ref":"master","sha":"6e06656d6037f3c66d2b184abde846cb577fe369","user":{"login":"t-k","id":426779,"avatar_url":"https://avatars.githubusercontent.com/u/426779?v=3","gravatar_id":"","url":"https://api.github.com/users/t-k","html_url":"https://github.com/t-k","followers_url":"https://api.github.com/users/t-k/followers","following_url":"https://api.github.com/users/t-k/following{/other_user}","gists_url":"https://api.github.com/users/t-k/gists{/gist_id}","starred_url":"https://api.github.com/users/t-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-k/subscriptions","organizations_url":"https://api.github.com/users/t-k/orgs","repos_url":"https://api.github.com/users/t-k/repos","events_url":"https://api.github.com/users/t-k/events{/privacy}","received_events_url":"https://api.github.com/users/t-k/received_events","type":"User","site_admin":false},"repo":{"id":11331524,"name":"ar2gostruct","full_name":"t-k/ar2gostruct","owner":{"login":"t-k","id":426779,"avatar_url":"https://avatars.githubusercontent.com/u/426779?v=3","gravatar_id":"","url":"https://api.github.com/users/t-k","html_url":"https://github.com/t-k","followers_url":"https://api.github.com/users/t-k/followers","following_url":"https://api.github.com/users/t-k/following{/other_user}","gists_url":"https://api.github.com/users/t-k/gists{/gist_id}","starred_url":"https://api.github.com/users/t-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-k/subscriptions","organizations_url":"https://api.github.com/users/t-k/orgs","repos_url":"https://api.github.com/users/t-k/repos","events_url":"https://api.github.com/users/t-k/events{/privacy}","received_events_url":"https://api.github.com/users/t-k/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/t-k/ar2gostruct","description":"Generate Go (golang) Struct from activerecord models","fork":false,"url":"https://api.github.com/repos/t-k/ar2gostruct","forks_url":"https://api.github.com/repos/t-k/ar2gostruct/forks","keys_url":"https://api.github.com/repos/t-k/ar2gostruct/keys{/key_id}","collaborators_url":"https://api.github.com/repos/t-k/ar2gostruct/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/t-k/ar2gostruct/teams","hooks_url":"https://api.github.com/repos/t-k/ar2gostruct/hooks","issue_events_url":"https://api.github.com/repos/t-k/ar2gostruct/issues/events{/number}","events_url":"https://api.github.com/repos/t-k/ar2gostruct/events","assignees_url":"https://api.github.com/repos/t-k/ar2gostruct/assignees{/user}","branches_url":"https://api.github.com/repos/t-k/ar2gostruct/branches{/branch}","tags_url":"https://api.github.com/repos/t-k/ar2gostruct/tags","blobs_url":"https://api.github.com/repos/t-k/ar2gostruct/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/t-k/ar2gostruct/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/t-k/ar2gostruct/git/refs{/sha}","trees_url":"https://api.github.com/repos/t-k/ar2gostruct/git/trees{/sha}","statuses_url":"https://api.github.com/repos/t-k/ar2gostruct/statuses/{sha}","languages_url":"https://api.github.com/repos/t-k/ar2gostruct/languages","stargazers_url":"https://api.github.com/repos/t-k/ar2gostruct/stargazers","contributors_url":"https://api.github.com/repos/t-k/ar2gostruct/contributors","subscribers_url":"https://api.github.com/repos/t-k/ar2gostruct/subscribers","subscription_url":"https://api.github.com/repos/t-k/ar2gostruct/subscription","commits_url":"https://api.github.com/repos/t-k/ar2gostruct/commits{/sha}","git_commits_url":"https://api.github.com/repos/t-k/ar2gostruct/git/commits{/sha}","comments_url":"https://api.github.com/repos/t-k/ar2gostruct/comments{/number}","issue_comment_url":"https://api.github.com/repos/t-k/ar2gostruct/issues/comments{/number}","contents_url":"https://api.github.com/repos/t-k/ar2gostruct/contents/{+path}","compare_url":"https://api.github.com/repos/t-k/ar2gostruct/compare/{base}...{head}","merges_url":"https://api.github.com/repos/t-k/ar2gostruct/merges","archive_url":"https://api.github.com/repos/t-k/ar2gostruct/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/t-k/ar2gostruct/downloads","issues_url":"https://api.github.com/repos/t-k/ar2gostruct/issues{/number}","pulls_url":"https://api.github.com/repos/t-k/ar2gostruct/pulls{/number}","milestones_url":"https://api.github.com/repos/t-k/ar2gostruct/milestones{/number}","notifications_url":"https://api.github.com/repos/t-k/ar2gostruct/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/t-k/ar2gostruct/labels{/name}","releases_url":"https://api.github.com/repos/t-k/ar2gostruct/releases{/id}","created_at":"2013-07-11T03:26:29Z","updated_at":"2015-05-01T04:19:31Z","pushed_at":"2015-08-17T00:21:01Z","git_url":"git://github.com/t-k/ar2gostruct.git","ssh_url":"git@github.com:t-k/ar2gostruct.git","clone_url":"https://github.com/t-k/ar2gostruct.git","svn_url":"https://github.com/t-k/ar2gostruct","homepage":"https://rubygems.org/gems/ar2gostruct","size":200,"stargazers_count":22,"watchers_count":22,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/t-k/ar2gostruct/pulls/2"},"html":{"href":"https://github.com/t-k/ar2gostruct/pull/2"},"issue":{"href":"https://api.github.com/repos/t-k/ar2gostruct/issues/2"},"comments":{"href":"https://api.github.com/repos/t-k/ar2gostruct/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/t-k/ar2gostruct/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/t-k/ar2gostruct/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/t-k/ar2gostruct/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/t-k/ar2gostruct/statuses/88122b431f32e097a80c8cd0931876aba8801445"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":8,"deletions":2,"changed_files":2}}