{"action":"opened","number":9,"pull_request":{"url":"https://api.github.com/repos/ry/v8worker/pulls/9","id":32366340,"html_url":"https://github.com/ry/v8worker/pull/9","diff_url":"https://github.com/ry/v8worker/pull/9.diff","patch_url":"https://github.com/ry/v8worker/pull/9.patch","issue_url":"https://api.github.com/repos/ry/v8worker/issues/9","number":9,"state":"open","locked":false,"title":"Allow embedders to supply custom $print() handler","user":{"login":"joewalnes","id":48950,"avatar_url":"https://avatars.githubusercontent.com/u/48950?v=3","gravatar_id":"","url":"https://api.github.com/users/joewalnes","html_url":"https://github.com/joewalnes","followers_url":"https://api.github.com/users/joewalnes/followers","following_url":"https://api.github.com/users/joewalnes/following{/other_user}","gists_url":"https://api.github.com/users/joewalnes/gists{/gist_id}","starred_url":"https://api.github.com/users/joewalnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joewalnes/subscriptions","organizations_url":"https://api.github.com/users/joewalnes/orgs","repos_url":"https://api.github.com/users/joewalnes/repos","events_url":"https://api.github.com/users/joewalnes/events{/privacy}","received_events_url":"https://api.github.com/users/joewalnes/received_events","type":"User","site_admin":false},"body":"When creating a worker, a custom func(str string){} callback can be specified\r\nto allow apps to handle $print().\r\n\r\nThis allows the $print() output to be directed to other places. Since this\r\nis most likely going to be used for logging and debugging, this may go to\r\nfiles, or through timestamp formatters, over a wire to a remote UI, etc.\r\n\r\nUsers should use v8worker.NewCustomPrint() to specify a custom print\r\nhandler.\r\n\r\nIf using regular v8worker.New(), the behavior is unchanged and regular\r\nprintf() is called from the C layer.\r\n\r\nAlso made one subtle change when using the C printing to do printf() in\r\na single call - this reduces the chance of workers running on different\r\nthreads interminglifying their output.","created_at":"2015-03-31T21:11:28Z","updated_at":"2015-03-31T21:11:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ry/v8worker/pulls/9/commits","review_comments_url":"https://api.github.com/repos/ry/v8worker/pulls/9/comments","review_comment_url":"https://api.github.com/repos/ry/v8worker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ry/v8worker/issues/9/comments","statuses_url":"https://api.github.com/repos/ry/v8worker/statuses/5d5ea381b428ff88e58daf080fe42c0394f029b5","head":{"label":"joewalnes:master","ref":"master","sha":"5d5ea381b428ff88e58daf080fe42c0394f029b5","user":{"login":"joewalnes","id":48950,"avatar_url":"https://avatars.githubusercontent.com/u/48950?v=3","gravatar_id":"","url":"https://api.github.com/users/joewalnes","html_url":"https://github.com/joewalnes","followers_url":"https://api.github.com/users/joewalnes/followers","following_url":"https://api.github.com/users/joewalnes/following{/other_user}","gists_url":"https://api.github.com/users/joewalnes/gists{/gist_id}","starred_url":"https://api.github.com/users/joewalnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joewalnes/subscriptions","organizations_url":"https://api.github.com/users/joewalnes/orgs","repos_url":"https://api.github.com/users/joewalnes/repos","events_url":"https://api.github.com/users/joewalnes/events{/privacy}","received_events_url":"https://api.github.com/users/joewalnes/received_events","type":"User","site_admin":false},"repo":{"id":33200495,"name":"v8worker","full_name":"joewalnes/v8worker","owner":{"login":"joewalnes","id":48950,"avatar_url":"https://avatars.githubusercontent.com/u/48950?v=3","gravatar_id":"","url":"https://api.github.com/users/joewalnes","html_url":"https://github.com/joewalnes","followers_url":"https://api.github.com/users/joewalnes/followers","following_url":"https://api.github.com/users/joewalnes/following{/other_user}","gists_url":"https://api.github.com/users/joewalnes/gists{/gist_id}","starred_url":"https://api.github.com/users/joewalnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joewalnes/subscriptions","organizations_url":"https://api.github.com/users/joewalnes/orgs","repos_url":"https://api.github.com/users/joewalnes/repos","events_url":"https://api.github.com/users/joewalnes/events{/privacy}","received_events_url":"https://api.github.com/users/joewalnes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joewalnes/v8worker","description":"Minimal golang binding to V8","fork":true,"url":"https://api.github.com/repos/joewalnes/v8worker","forks_url":"https://api.github.com/repos/joewalnes/v8worker/forks","keys_url":"https://api.github.com/repos/joewalnes/v8worker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joewalnes/v8worker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joewalnes/v8worker/teams","hooks_url":"https://api.github.com/repos/joewalnes/v8worker/hooks","issue_events_url":"https://api.github.com/repos/joewalnes/v8worker/issues/events{/number}","events_url":"https://api.github.com/repos/joewalnes/v8worker/events","assignees_url":"https://api.github.com/repos/joewalnes/v8worker/assignees{/user}","branches_url":"https://api.github.com/repos/joewalnes/v8worker/branches{/branch}","tags_url":"https://api.github.com/repos/joewalnes/v8worker/tags","blobs_url":"https://api.github.com/repos/joewalnes/v8worker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joewalnes/v8worker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joewalnes/v8worker/git/refs{/sha}","trees_url":"https://api.github.com/repos/joewalnes/v8worker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joewalnes/v8worker/statuses/{sha}","languages_url":"https://api.github.com/repos/joewalnes/v8worker/languages","stargazers_url":"https://api.github.com/repos/joewalnes/v8worker/stargazers","contributors_url":"https://api.github.com/repos/joewalnes/v8worker/contributors","subscribers_url":"https://api.github.com/repos/joewalnes/v8worker/subscribers","subscription_url":"https://api.github.com/repos/joewalnes/v8worker/subscription","commits_url":"https://api.github.com/repos/joewalnes/v8worker/commits{/sha}","git_commits_url":"https://api.github.com/repos/joewalnes/v8worker/git/commits{/sha}","comments_url":"https://api.github.com/repos/joewalnes/v8worker/comments{/number}","issue_comment_url":"https://api.github.com/repos/joewalnes/v8worker/issues/comments{/number}","contents_url":"https://api.github.com/repos/joewalnes/v8worker/contents/{+path}","compare_url":"https://api.github.com/repos/joewalnes/v8worker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joewalnes/v8worker/merges","archive_url":"https://api.github.com/repos/joewalnes/v8worker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joewalnes/v8worker/downloads","issues_url":"https://api.github.com/repos/joewalnes/v8worker/issues{/number}","pulls_url":"https://api.github.com/repos/joewalnes/v8worker/pulls{/number}","milestones_url":"https://api.github.com/repos/joewalnes/v8worker/milestones{/number}","notifications_url":"https://api.github.com/repos/joewalnes/v8worker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joewalnes/v8worker/labels{/name}","releases_url":"https://api.github.com/repos/joewalnes/v8worker/releases{/id}","created_at":"2015-03-31T17:47:59Z","updated_at":"2015-03-31T21:08:37Z","pushed_at":"2015-03-31T21:08:36Z","git_url":"git://github.com/joewalnes/v8worker.git","ssh_url":"git@github.com:joewalnes/v8worker.git","clone_url":"https://github.com/joewalnes/v8worker.git","svn_url":"https://github.com/joewalnes/v8worker","homepage":null,"size":79409,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"ry:master","ref":"master","sha":"50fe55f79e6e204fd2236d08d1d831c07b1bb3e1","user":{"login":"ry","id":80,"avatar_url":"https://avatars.githubusercontent.com/u/80?v=3","gravatar_id":"","url":"https://api.github.com/users/ry","html_url":"https://github.com/ry","followers_url":"https://api.github.com/users/ry/followers","following_url":"https://api.github.com/users/ry/following{/other_user}","gists_url":"https://api.github.com/users/ry/gists{/gist_id}","starred_url":"https://api.github.com/users/ry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ry/subscriptions","organizations_url":"https://api.github.com/users/ry/orgs","repos_url":"https://api.github.com/users/ry/repos","events_url":"https://api.github.com/users/ry/events{/privacy}","received_events_url":"https://api.github.com/users/ry/received_events","type":"User","site_admin":false},"repo":{"id":33062055,"name":"v8worker","full_name":"ry/v8worker","owner":{"login":"ry","id":80,"avatar_url":"https://avatars.githubusercontent.com/u/80?v=3","gravatar_id":"","url":"https://api.github.com/users/ry","html_url":"https://github.com/ry","followers_url":"https://api.github.com/users/ry/followers","following_url":"https://api.github.com/users/ry/following{/other_user}","gists_url":"https://api.github.com/users/ry/gists{/gist_id}","starred_url":"https://api.github.com/users/ry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ry/subscriptions","organizations_url":"https://api.github.com/users/ry/orgs","repos_url":"https://api.github.com/users/ry/repos","events_url":"https://api.github.com/users/ry/events{/privacy}","received_events_url":"https://api.github.com/users/ry/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ry/v8worker","description":"Minimal golang binding to V8","fork":false,"url":"https://api.github.com/repos/ry/v8worker","forks_url":"https://api.github.com/repos/ry/v8worker/forks","keys_url":"https://api.github.com/repos/ry/v8worker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ry/v8worker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ry/v8worker/teams","hooks_url":"https://api.github.com/repos/ry/v8worker/hooks","issue_events_url":"https://api.github.com/repos/ry/v8worker/issues/events{/number}","events_url":"https://api.github.com/repos/ry/v8worker/events","assignees_url":"https://api.github.com/repos/ry/v8worker/assignees{/user}","branches_url":"https://api.github.com/repos/ry/v8worker/branches{/branch}","tags_url":"https://api.github.com/repos/ry/v8worker/tags","blobs_url":"https://api.github.com/repos/ry/v8worker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ry/v8worker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ry/v8worker/git/refs{/sha}","trees_url":"https://api.github.com/repos/ry/v8worker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ry/v8worker/statuses/{sha}","languages_url":"https://api.github.com/repos/ry/v8worker/languages","stargazers_url":"https://api.github.com/repos/ry/v8worker/stargazers","contributors_url":"https://api.github.com/repos/ry/v8worker/contributors","subscribers_url":"https://api.github.com/repos/ry/v8worker/subscribers","subscription_url":"https://api.github.com/repos/ry/v8worker/subscription","commits_url":"https://api.github.com/repos/ry/v8worker/commits{/sha}","git_commits_url":"https://api.github.com/repos/ry/v8worker/git/commits{/sha}","comments_url":"https://api.github.com/repos/ry/v8worker/comments{/number}","issue_comment_url":"https://api.github.com/repos/ry/v8worker/issues/comments{/number}","contents_url":"https://api.github.com/repos/ry/v8worker/contents/{+path}","compare_url":"https://api.github.com/repos/ry/v8worker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ry/v8worker/merges","archive_url":"https://api.github.com/repos/ry/v8worker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ry/v8worker/downloads","issues_url":"https://api.github.com/repos/ry/v8worker/issues{/number}","pulls_url":"https://api.github.com/repos/ry/v8worker/pulls{/number}","milestones_url":"https://api.github.com/repos/ry/v8worker/milestones{/number}","notifications_url":"https://api.github.com/repos/ry/v8worker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ry/v8worker/labels{/name}","releases_url":"https://api.github.com/repos/ry/v8worker/releases{/id}","created_at":"2015-03-29T04:58:57Z","updated_at":"2015-03-31T21:00:20Z","pushed_at":"2015-03-31T20:04:41Z","git_url":"git://github.com/ry/v8worker.git","ssh_url":"git@github.com:ry/v8worker.git","clone_url":"https://github.com/ry/v8worker.git","svn_url":"https://github.com/ry/v8worker","homepage":null,"size":79409,"stargazers_count":556,"watchers_count":556,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":3,"forks":15,"open_issues":3,"watchers":556,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ry/v8worker/pulls/9"},"html":{"href":"https://github.com/ry/v8worker/pull/9"},"issue":{"href":"https://api.github.com/repos/ry/v8worker/issues/9"},"comments":{"href":"https://api.github.com/repos/ry/v8worker/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/ry/v8worker/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/ry/v8worker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ry/v8worker/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/ry/v8worker/statuses/5d5ea381b428ff88e58daf080fe42c0394f029b5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":5,"additions":84,"deletions":9,"changed_files":4}}