{"action":"created","comment":{"url":"https://api.github.com/repos/tchap/go-patricia/pulls/comments/24885047","id":24885047,"diff_hunk":"@@ -28,17 +51,33 @@ type Trie struct {\n \titem   Item\n \n \tchildren childList\n+\toption   *Option\n }\n \n // Public API ------------------------------------------------------------------\n \n // Trie constructor.\n func NewTrie() *Trie {\n+\to := defaultOption()\n+\treturn NewTrieWithOption(o)\n+}\n+\n+// Trie constructor with option.\n+func NewTrieWithOption(o *Option) *Trie {","path":"patricia/patricia.go","position":46,"original_position":46,"commit_id":"c3d867f62df6ef8c7ff866b9e4429446841b19db","original_commit_id":"c3d867f62df6ef8c7ff866b9e4429446841b19db","user":{"login":"tchap","id":697127,"avatar_url":"https://avatars.githubusercontent.com/u/697127?v=3","gravatar_id":"","url":"https://api.github.com/users/tchap","html_url":"https://github.com/tchap","followers_url":"https://api.github.com/users/tchap/followers","following_url":"https://api.github.com/users/tchap/following{/other_user}","gists_url":"https://api.github.com/users/tchap/gists{/gist_id}","starred_url":"https://api.github.com/users/tchap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tchap/subscriptions","organizations_url":"https://api.github.com/users/tchap/orgs","repos_url":"https://api.github.com/users/tchap/repos","events_url":"https://api.github.com/users/tchap/events{/privacy}","received_events_url":"https://api.github.com/users/tchap/received_events","type":"User","site_admin":false},"body":"@ishidawataru What about calling this `NewCustomTrie`?","created_at":"2015-02-18T08:27:56Z","updated_at":"2015-02-18T08:27:56Z","html_url":"https://github.com/tchap/go-patricia/pull/13#discussion_r24885047","pull_request_url":"https://api.github.com/repos/tchap/go-patricia/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/tchap/go-patricia/pulls/comments/24885047"},"html":{"href":"https://github.com/tchap/go-patricia/pull/13#discussion_r24885047"},"pull_request":{"href":"https://api.github.com/repos/tchap/go-patricia/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/tchap/go-patricia/pulls/13","id":27254157,"html_url":"https://github.com/tchap/go-patricia/pull/13","diff_url":"https://github.com/tchap/go-patricia/pull/13.diff","patch_url":"https://github.com/tchap/go-patricia/pull/13.patch","issue_url":"https://api.github.com/repos/tchap/go-patricia/issues/13","number":13,"state":"open","locked":false,"title":"Pull parameters into trie","user":{"login":"ishidawataru","id":5915117,"avatar_url":"https://avatars.githubusercontent.com/u/5915117?v=3","gravatar_id":"","url":"https://api.github.com/users/ishidawataru","html_url":"https://github.com/ishidawataru","followers_url":"https://api.github.com/users/ishidawataru/followers","following_url":"https://api.github.com/users/ishidawataru/following{/other_user}","gists_url":"https://api.github.com/users/ishidawataru/gists{/gist_id}","starred_url":"https://api.github.com/users/ishidawataru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishidawataru/subscriptions","organizations_url":"https://api.github.com/users/ishidawataru/orgs","repos_url":"https://api.github.com/users/ishidawataru/repos","events_url":"https://api.github.com/users/ishidawataru/events{/privacy}","received_events_url":"https://api.github.com/users/ishidawataru/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-13T08:15:25Z","updated_at":"2015-02-18T08:27:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72d2ff1ac05a26b6864ac95881fa4e34a9a5f597","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tchap/go-patricia/pulls/13/commits","review_comments_url":"https://api.github.com/repos/tchap/go-patricia/pulls/13/comments","review_comment_url":"https://api.github.com/repos/tchap/go-patricia/pulls/comments/{number}","comments_url":"https://api.github.com/repos/tchap/go-patricia/issues/13/comments","statuses_url":"https://api.github.com/repos/tchap/go-patricia/statuses/c3d867f62df6ef8c7ff866b9e4429446841b19db","head":{"label":"ishidawataru:option","ref":"option","sha":"c3d867f62df6ef8c7ff866b9e4429446841b19db","user":{"login":"ishidawataru","id":5915117,"avatar_url":"https://avatars.githubusercontent.com/u/5915117?v=3","gravatar_id":"","url":"https://api.github.com/users/ishidawataru","html_url":"https://github.com/ishidawataru","followers_url":"https://api.github.com/users/ishidawataru/followers","following_url":"https://api.github.com/users/ishidawataru/following{/other_user}","gists_url":"https://api.github.com/users/ishidawataru/gists{/gist_id}","starred_url":"https://api.github.com/users/ishidawataru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishidawataru/subscriptions","organizations_url":"https://api.github.com/users/ishidawataru/orgs","repos_url":"https://api.github.com/users/ishidawataru/repos","events_url":"https://api.github.com/users/ishidawataru/events{/privacy}","received_events_url":"https://api.github.com/users/ishidawataru/received_events","type":"User","site_admin":false},"repo":{"id":29169375,"name":"go-patricia","full_name":"ishidawataru/go-patricia","owner":{"login":"ishidawataru","id":5915117,"avatar_url":"https://avatars.githubusercontent.com/u/5915117?v=3","gravatar_id":"","url":"https://api.github.com/users/ishidawataru","html_url":"https://github.com/ishidawataru","followers_url":"https://api.github.com/users/ishidawataru/followers","following_url":"https://api.github.com/users/ishidawataru/following{/other_user}","gists_url":"https://api.github.com/users/ishidawataru/gists{/gist_id}","starred_url":"https://api.github.com/users/ishidawataru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishidawataru/subscriptions","organizations_url":"https://api.github.com/users/ishidawataru/orgs","repos_url":"https://api.github.com/users/ishidawataru/repos","events_url":"https://api.github.com/users/ishidawataru/events{/privacy}","received_events_url":"https://api.github.com/users/ishidawataru/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ishidawataru/go-patricia","description":"A generic patricia trie (also called radix tree) implemented in Go (Golang)","fork":true,"url":"https://api.github.com/repos/ishidawataru/go-patricia","forks_url":"https://api.github.com/repos/ishidawataru/go-patricia/forks","keys_url":"https://api.github.com/repos/ishidawataru/go-patricia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ishidawataru/go-patricia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ishidawataru/go-patricia/teams","hooks_url":"https://api.github.com/repos/ishidawataru/go-patricia/hooks","issue_events_url":"https://api.github.com/repos/ishidawataru/go-patricia/issues/events{/number}","events_url":"https://api.github.com/repos/ishidawataru/go-patricia/events","assignees_url":"https://api.github.com/repos/ishidawataru/go-patricia/assignees{/user}","branches_url":"https://api.github.com/repos/ishidawataru/go-patricia/branches{/branch}","tags_url":"https://api.github.com/repos/ishidawataru/go-patricia/tags","blobs_url":"https://api.github.com/repos/ishidawataru/go-patricia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ishidawataru/go-patricia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ishidawataru/go-patricia/git/refs{/sha}","trees_url":"https://api.github.com/repos/ishidawataru/go-patricia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ishidawataru/go-patricia/statuses/{sha}","languages_url":"https://api.github.com/repos/ishidawataru/go-patricia/languages","stargazers_url":"https://api.github.com/repos/ishidawataru/go-patricia/stargazers","contributors_url":"https://api.github.com/repos/ishidawataru/go-patricia/contributors","subscribers_url":"https://api.github.com/repos/ishidawataru/go-patricia/subscribers","subscription_url":"https://api.github.com/repos/ishidawataru/go-patricia/subscription","commits_url":"https://api.github.com/repos/ishidawataru/go-patricia/commits{/sha}","git_commits_url":"https://api.github.com/repos/ishidawataru/go-patricia/git/commits{/sha}","comments_url":"https://api.github.com/repos/ishidawataru/go-patricia/comments{/number}","issue_comment_url":"https://api.github.com/repos/ishidawataru/go-patricia/issues/comments/{number}","contents_url":"https://api.github.com/repos/ishidawataru/go-patricia/contents/{+path}","compare_url":"https://api.github.com/repos/ishidawataru/go-patricia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ishidawataru/go-patricia/merges","archive_url":"https://api.github.com/repos/ishidawataru/go-patricia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ishidawataru/go-patricia/downloads","issues_url":"https://api.github.com/repos/ishidawataru/go-patricia/issues{/number}","pulls_url":"https://api.github.com/repos/ishidawataru/go-patricia/pulls{/number}","milestones_url":"https://api.github.com/repos/ishidawataru/go-patricia/milestones{/number}","notifications_url":"https://api.github.com/repos/ishidawataru/go-patricia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ishidawataru/go-patricia/labels{/name}","releases_url":"https://api.github.com/repos/ishidawataru/go-patricia/releases{/id}","created_at":"2015-01-13T02:45:44Z","updated_at":"2015-01-13T03:30:35Z","pushed_at":"2015-01-21T08:54:41Z","git_url":"git://github.com/ishidawataru/go-patricia.git","ssh_url":"git@github.com:ishidawataru/go-patricia.git","clone_url":"https://github.com/ishidawataru/go-patricia.git","svn_url":"https://github.com/ishidawataru/go-patricia","homepage":"","size":156,"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":"tchap:master","ref":"master","sha":"f64d0a63cd3363481c898faa9339de04d12213f9","user":{"login":"tchap","id":697127,"avatar_url":"https://avatars.githubusercontent.com/u/697127?v=3","gravatar_id":"","url":"https://api.github.com/users/tchap","html_url":"https://github.com/tchap","followers_url":"https://api.github.com/users/tchap/followers","following_url":"https://api.github.com/users/tchap/following{/other_user}","gists_url":"https://api.github.com/users/tchap/gists{/gist_id}","starred_url":"https://api.github.com/users/tchap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tchap/subscriptions","organizations_url":"https://api.github.com/users/tchap/orgs","repos_url":"https://api.github.com/users/tchap/repos","events_url":"https://api.github.com/users/tchap/events{/privacy}","received_events_url":"https://api.github.com/users/tchap/received_events","type":"User","site_admin":false},"repo":{"id":15849159,"name":"go-patricia","full_name":"tchap/go-patricia","owner":{"login":"tchap","id":697127,"avatar_url":"https://avatars.githubusercontent.com/u/697127?v=3","gravatar_id":"","url":"https://api.github.com/users/tchap","html_url":"https://github.com/tchap","followers_url":"https://api.github.com/users/tchap/followers","following_url":"https://api.github.com/users/tchap/following{/other_user}","gists_url":"https://api.github.com/users/tchap/gists{/gist_id}","starred_url":"https://api.github.com/users/tchap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tchap/subscriptions","organizations_url":"https://api.github.com/users/tchap/orgs","repos_url":"https://api.github.com/users/tchap/repos","events_url":"https://api.github.com/users/tchap/events{/privacy}","received_events_url":"https://api.github.com/users/tchap/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tchap/go-patricia","description":"A generic patricia trie (also called radix tree) implemented in Go (Golang)","fork":false,"url":"https://api.github.com/repos/tchap/go-patricia","forks_url":"https://api.github.com/repos/tchap/go-patricia/forks","keys_url":"https://api.github.com/repos/tchap/go-patricia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tchap/go-patricia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tchap/go-patricia/teams","hooks_url":"https://api.github.com/repos/tchap/go-patricia/hooks","issue_events_url":"https://api.github.com/repos/tchap/go-patricia/issues/events{/number}","events_url":"https://api.github.com/repos/tchap/go-patricia/events","assignees_url":"https://api.github.com/repos/tchap/go-patricia/assignees{/user}","branches_url":"https://api.github.com/repos/tchap/go-patricia/branches{/branch}","tags_url":"https://api.github.com/repos/tchap/go-patricia/tags","blobs_url":"https://api.github.com/repos/tchap/go-patricia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tchap/go-patricia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tchap/go-patricia/git/refs{/sha}","trees_url":"https://api.github.com/repos/tchap/go-patricia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tchap/go-patricia/statuses/{sha}","languages_url":"https://api.github.com/repos/tchap/go-patricia/languages","stargazers_url":"https://api.github.com/repos/tchap/go-patricia/stargazers","contributors_url":"https://api.github.com/repos/tchap/go-patricia/contributors","subscribers_url":"https://api.github.com/repos/tchap/go-patricia/subscribers","subscription_url":"https://api.github.com/repos/tchap/go-patricia/subscription","commits_url":"https://api.github.com/repos/tchap/go-patricia/commits{/sha}","git_commits_url":"https://api.github.com/repos/tchap/go-patricia/git/commits{/sha}","comments_url":"https://api.github.com/repos/tchap/go-patricia/comments{/number}","issue_comment_url":"https://api.github.com/repos/tchap/go-patricia/issues/comments/{number}","contents_url":"https://api.github.com/repos/tchap/go-patricia/contents/{+path}","compare_url":"https://api.github.com/repos/tchap/go-patricia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tchap/go-patricia/merges","archive_url":"https://api.github.com/repos/tchap/go-patricia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tchap/go-patricia/downloads","issues_url":"https://api.github.com/repos/tchap/go-patricia/issues{/number}","pulls_url":"https://api.github.com/repos/tchap/go-patricia/pulls{/number}","milestones_url":"https://api.github.com/repos/tchap/go-patricia/milestones{/number}","notifications_url":"https://api.github.com/repos/tchap/go-patricia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tchap/go-patricia/labels{/name}","releases_url":"https://api.github.com/repos/tchap/go-patricia/releases{/id}","created_at":"2014-01-12T19:34:48Z","updated_at":"2015-02-18T02:16:21Z","pushed_at":"2014-06-27T11:38:52Z","git_url":"git://github.com/tchap/go-patricia.git","ssh_url":"git@github.com:tchap/go-patricia.git","clone_url":"https://github.com/tchap/go-patricia.git","svn_url":"https://github.com/tchap/go-patricia","homepage":"","size":730,"stargazers_count":56,"watchers_count":56,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":4,"forks":18,"open_issues":4,"watchers":56,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tchap/go-patricia/pulls/13"},"html":{"href":"https://github.com/tchap/go-patricia/pull/13"},"issue":{"href":"https://api.github.com/repos/tchap/go-patricia/issues/13"},"comments":{"href":"https://api.github.com/repos/tchap/go-patricia/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/tchap/go-patricia/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/tchap/go-patricia/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/tchap/go-patricia/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/tchap/go-patricia/statuses/c3d867f62df6ef8c7ff866b9e4429446841b19db"}}}}