{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/ivpusic/go-clicolor/pulls/1","id":31204995,"html_url":"https://github.com/ivpusic/go-clicolor/pull/1","diff_url":"https://github.com/ivpusic/go-clicolor/pull/1.diff","patch_url":"https://github.com/ivpusic/go-clicolor/pull/1.patch","issue_url":"https://api.github.com/repos/ivpusic/go-clicolor/issues/1","number":1,"state":"open","locked":false,"title":"Compile regexps once, rather than on every call","user":{"login":"TheDorkKnight","id":1613749,"avatar_url":"https://avatars.githubusercontent.com/u/1613749?v=3","gravatar_id":"","url":"https://api.github.com/users/TheDorkKnight","html_url":"https://github.com/TheDorkKnight","followers_url":"https://api.github.com/users/TheDorkKnight/followers","following_url":"https://api.github.com/users/TheDorkKnight/following{/other_user}","gists_url":"https://api.github.com/users/TheDorkKnight/gists{/gist_id}","starred_url":"https://api.github.com/users/TheDorkKnight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheDorkKnight/subscriptions","organizations_url":"https://api.github.com/users/TheDorkKnight/orgs","repos_url":"https://api.github.com/users/TheDorkKnight/repos","events_url":"https://api.github.com/users/TheDorkKnight/events{/privacy}","received_events_url":"https://api.github.com/users/TheDorkKnight/received_events","type":"User","site_admin":false},"body":"There's no need to compile the regular expressions on a per function-call basis, nor a per-loop basis.","created_at":"2015-03-15T18:51:05Z","updated_at":"2015-03-15T18:51:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ivpusic/go-clicolor/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ivpusic/go-clicolor/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ivpusic/go-clicolor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ivpusic/go-clicolor/issues/1/comments","statuses_url":"https://api.github.com/repos/ivpusic/go-clicolor/statuses/65f00e85b05253e31cc3cf0b7207bfd2b875a449","head":{"label":"TheDorkKnight:precompile-regexps","ref":"precompile-regexps","sha":"65f00e85b05253e31cc3cf0b7207bfd2b875a449","user":{"login":"TheDorkKnight","id":1613749,"avatar_url":"https://avatars.githubusercontent.com/u/1613749?v=3","gravatar_id":"","url":"https://api.github.com/users/TheDorkKnight","html_url":"https://github.com/TheDorkKnight","followers_url":"https://api.github.com/users/TheDorkKnight/followers","following_url":"https://api.github.com/users/TheDorkKnight/following{/other_user}","gists_url":"https://api.github.com/users/TheDorkKnight/gists{/gist_id}","starred_url":"https://api.github.com/users/TheDorkKnight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheDorkKnight/subscriptions","organizations_url":"https://api.github.com/users/TheDorkKnight/orgs","repos_url":"https://api.github.com/users/TheDorkKnight/repos","events_url":"https://api.github.com/users/TheDorkKnight/events{/privacy}","received_events_url":"https://api.github.com/users/TheDorkKnight/received_events","type":"User","site_admin":false},"repo":{"id":32276727,"name":"go-clicolor","full_name":"TheDorkKnight/go-clicolor","owner":{"login":"TheDorkKnight","id":1613749,"avatar_url":"https://avatars.githubusercontent.com/u/1613749?v=3","gravatar_id":"","url":"https://api.github.com/users/TheDorkKnight","html_url":"https://github.com/TheDorkKnight","followers_url":"https://api.github.com/users/TheDorkKnight/followers","following_url":"https://api.github.com/users/TheDorkKnight/following{/other_user}","gists_url":"https://api.github.com/users/TheDorkKnight/gists{/gist_id}","starred_url":"https://api.github.com/users/TheDorkKnight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheDorkKnight/subscriptions","organizations_url":"https://api.github.com/users/TheDorkKnight/orgs","repos_url":"https://api.github.com/users/TheDorkKnight/repos","events_url":"https://api.github.com/users/TheDorkKnight/events{/privacy}","received_events_url":"https://api.github.com/users/TheDorkKnight/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TheDorkKnight/go-clicolor","description":"Package provides ability to print colored text to stdout.","fork":true,"url":"https://api.github.com/repos/TheDorkKnight/go-clicolor","forks_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/forks","keys_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/teams","hooks_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/hooks","issue_events_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/issues/events{/number}","events_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/events","assignees_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/assignees{/user}","branches_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/branches{/branch}","tags_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/tags","blobs_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/git/refs{/sha}","trees_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/statuses/{sha}","languages_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/languages","stargazers_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/stargazers","contributors_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/contributors","subscribers_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/subscribers","subscription_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/subscription","commits_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/commits{/sha}","git_commits_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/git/commits{/sha}","comments_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/comments{/number}","issue_comment_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/issues/comments{/number}","contents_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/contents/{+path}","compare_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/merges","archive_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/downloads","issues_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/issues{/number}","pulls_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/pulls{/number}","milestones_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/milestones{/number}","notifications_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/labels{/name}","releases_url":"https://api.github.com/repos/TheDorkKnight/go-clicolor/releases{/id}","created_at":"2015-03-15T18:29:06Z","updated_at":"2015-03-15T18:49:32Z","pushed_at":"2015-03-15T18:49:31Z","git_url":"git://github.com/TheDorkKnight/go-clicolor.git","ssh_url":"git@github.com:TheDorkKnight/go-clicolor.git","clone_url":"https://github.com/TheDorkKnight/go-clicolor.git","svn_url":"https://github.com/TheDorkKnight/go-clicolor","homepage":"http://godoc.org/github.com/ivpusic/go-clicolor/clicolor","size":152,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"ivpusic:master","ref":"master","sha":"4a2c13ee7b9148136bdc0a076821c61fb0650bf2","user":{"login":"ivpusic","id":450140,"avatar_url":"https://avatars.githubusercontent.com/u/450140?v=3","gravatar_id":"","url":"https://api.github.com/users/ivpusic","html_url":"https://github.com/ivpusic","followers_url":"https://api.github.com/users/ivpusic/followers","following_url":"https://api.github.com/users/ivpusic/following{/other_user}","gists_url":"https://api.github.com/users/ivpusic/gists{/gist_id}","starred_url":"https://api.github.com/users/ivpusic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivpusic/subscriptions","organizations_url":"https://api.github.com/users/ivpusic/orgs","repos_url":"https://api.github.com/users/ivpusic/repos","events_url":"https://api.github.com/users/ivpusic/events{/privacy}","received_events_url":"https://api.github.com/users/ivpusic/received_events","type":"User","site_admin":false},"repo":{"id":24479378,"name":"go-clicolor","full_name":"ivpusic/go-clicolor","owner":{"login":"ivpusic","id":450140,"avatar_url":"https://avatars.githubusercontent.com/u/450140?v=3","gravatar_id":"","url":"https://api.github.com/users/ivpusic","html_url":"https://github.com/ivpusic","followers_url":"https://api.github.com/users/ivpusic/followers","following_url":"https://api.github.com/users/ivpusic/following{/other_user}","gists_url":"https://api.github.com/users/ivpusic/gists{/gist_id}","starred_url":"https://api.github.com/users/ivpusic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivpusic/subscriptions","organizations_url":"https://api.github.com/users/ivpusic/orgs","repos_url":"https://api.github.com/users/ivpusic/repos","events_url":"https://api.github.com/users/ivpusic/events{/privacy}","received_events_url":"https://api.github.com/users/ivpusic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ivpusic/go-clicolor","description":"Package provides ability to print colored text to stdout.","fork":false,"url":"https://api.github.com/repos/ivpusic/go-clicolor","forks_url":"https://api.github.com/repos/ivpusic/go-clicolor/forks","keys_url":"https://api.github.com/repos/ivpusic/go-clicolor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ivpusic/go-clicolor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ivpusic/go-clicolor/teams","hooks_url":"https://api.github.com/repos/ivpusic/go-clicolor/hooks","issue_events_url":"https://api.github.com/repos/ivpusic/go-clicolor/issues/events{/number}","events_url":"https://api.github.com/repos/ivpusic/go-clicolor/events","assignees_url":"https://api.github.com/repos/ivpusic/go-clicolor/assignees{/user}","branches_url":"https://api.github.com/repos/ivpusic/go-clicolor/branches{/branch}","tags_url":"https://api.github.com/repos/ivpusic/go-clicolor/tags","blobs_url":"https://api.github.com/repos/ivpusic/go-clicolor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ivpusic/go-clicolor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ivpusic/go-clicolor/git/refs{/sha}","trees_url":"https://api.github.com/repos/ivpusic/go-clicolor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ivpusic/go-clicolor/statuses/{sha}","languages_url":"https://api.github.com/repos/ivpusic/go-clicolor/languages","stargazers_url":"https://api.github.com/repos/ivpusic/go-clicolor/stargazers","contributors_url":"https://api.github.com/repos/ivpusic/go-clicolor/contributors","subscribers_url":"https://api.github.com/repos/ivpusic/go-clicolor/subscribers","subscription_url":"https://api.github.com/repos/ivpusic/go-clicolor/subscription","commits_url":"https://api.github.com/repos/ivpusic/go-clicolor/commits{/sha}","git_commits_url":"https://api.github.com/repos/ivpusic/go-clicolor/git/commits{/sha}","comments_url":"https://api.github.com/repos/ivpusic/go-clicolor/comments{/number}","issue_comment_url":"https://api.github.com/repos/ivpusic/go-clicolor/issues/comments{/number}","contents_url":"https://api.github.com/repos/ivpusic/go-clicolor/contents/{+path}","compare_url":"https://api.github.com/repos/ivpusic/go-clicolor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ivpusic/go-clicolor/merges","archive_url":"https://api.github.com/repos/ivpusic/go-clicolor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ivpusic/go-clicolor/downloads","issues_url":"https://api.github.com/repos/ivpusic/go-clicolor/issues{/number}","pulls_url":"https://api.github.com/repos/ivpusic/go-clicolor/pulls{/number}","milestones_url":"https://api.github.com/repos/ivpusic/go-clicolor/milestones{/number}","notifications_url":"https://api.github.com/repos/ivpusic/go-clicolor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ivpusic/go-clicolor/labels{/name}","releases_url":"https://api.github.com/repos/ivpusic/go-clicolor/releases{/id}","created_at":"2014-09-25T23:55:43Z","updated_at":"2015-03-12T16:40:33Z","pushed_at":"2015-03-09T22:52:31Z","git_url":"git://github.com/ivpusic/go-clicolor.git","ssh_url":"git@github.com:ivpusic/go-clicolor.git","clone_url":"https://github.com/ivpusic/go-clicolor.git","svn_url":"https://github.com/ivpusic/go-clicolor","homepage":"http://godoc.org/github.com/ivpusic/go-clicolor/clicolor","size":152,"stargazers_count":5,"watchers_count":5,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ivpusic/go-clicolor/pulls/1"},"html":{"href":"https://github.com/ivpusic/go-clicolor/pull/1"},"issue":{"href":"https://api.github.com/repos/ivpusic/go-clicolor/issues/1"},"comments":{"href":"https://api.github.com/repos/ivpusic/go-clicolor/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ivpusic/go-clicolor/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ivpusic/go-clicolor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ivpusic/go-clicolor/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ivpusic/go-clicolor/statuses/65f00e85b05253e31cc3cf0b7207bfd2b875a449"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":14,"deletions":6,"changed_files":1}}