{"action":"created","issue":{"url":"https://api.github.com/repos/beevik/etree/issues/15","repository_url":"https://api.github.com/repos/beevik/etree","labels_url":"https://api.github.com/repos/beevik/etree/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/beevik/etree/issues/15/comments","events_url":"https://api.github.com/repos/beevik/etree/issues/15/events","html_url":"https://github.com/beevik/etree/pull/15","id":125093519,"number":15,"title":"new api ","user":{"login":"hzmnet","id":5361750,"avatar_url":"https://avatars.githubusercontent.com/u/5361750?v=3","gravatar_id":"","url":"https://api.github.com/users/hzmnet","html_url":"https://github.com/hzmnet","followers_url":"https://api.github.com/users/hzmnet/followers","following_url":"https://api.github.com/users/hzmnet/following{/other_user}","gists_url":"https://api.github.com/users/hzmnet/gists{/gist_id}","starred_url":"https://api.github.com/users/hzmnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzmnet/subscriptions","organizations_url":"https://api.github.com/users/hzmnet/orgs","repos_url":"https://api.github.com/users/hzmnet/repos","events_url":"https://api.github.com/users/hzmnet/events{/privacy}","received_events_url":"https://api.github.com/users/hzmnet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-06T01:57:50Z","updated_at":"2016-03-18T00:29:27Z","closed_at":"2016-03-18T00:29:27Z","pull_request":{"url":"https://api.github.com/repos/beevik/etree/pulls/15","html_url":"https://github.com/beevik/etree/pull/15","diff_url":"https://github.com/beevik/etree/pull/15.diff","patch_url":"https://github.com/beevik/etree/pull/15.patch"},"body":"Insert"},"comment":{"url":"https://api.github.com/repos/beevik/etree/issues/comments/198143770","html_url":"https://github.com/beevik/etree/pull/15#issuecomment-198143770","issue_url":"https://api.github.com/repos/beevik/etree/issues/15","id":198143770,"user":{"login":"beevik","id":466481,"avatar_url":"https://avatars.githubusercontent.com/u/466481?v=3","gravatar_id":"","url":"https://api.github.com/users/beevik","html_url":"https://github.com/beevik","followers_url":"https://api.github.com/users/beevik/followers","following_url":"https://api.github.com/users/beevik/following{/other_user}","gists_url":"https://api.github.com/users/beevik/gists{/gist_id}","starred_url":"https://api.github.com/users/beevik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beevik/subscriptions","organizations_url":"https://api.github.com/users/beevik/orgs","repos_url":"https://api.github.com/users/beevik/repos","events_url":"https://api.github.com/users/beevik/events{/privacy}","received_events_url":"https://api.github.com/users/beevik/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T00:29:27Z","updated_at":"2016-03-18T00:29:27Z","body":"I've decided to reject this PR for several reasons:\r\n1. It doesn't use idiomatic go.\r\n2. It doesn't follow the naming conventions of the rest of the etree code.\r\n3. It has commented-out code that shouldn't be part of a released library.\r\n4. Some of the new functions it introduces (GetNext, GetPrevi) are already easily performed with the existing library and in a more performant way.\r\n\r\nI did go ahead and add a new InsertElement function, which should hopefully give you one of the things this PR was trying to achieve."}}