{"action":"created","issue":{"url":"https://api.github.com/repos/texttheater/golang-levenshtein/issues/6","labels_url":"https://api.github.com/repos/texttheater/golang-levenshtein/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/texttheater/golang-levenshtein/issues/6/comments","events_url":"https://api.github.com/repos/texttheater/golang-levenshtein/issues/6/events","html_url":"https://github.com/texttheater/golang-levenshtein/pull/6","id":127925598,"number":6,"title":"Make the dynamic programming algorithm generic.","user":{"login":"danieldk","id":49398,"avatar_url":"https://avatars.githubusercontent.com/u/49398?v=3","gravatar_id":"","url":"https://api.github.com/users/danieldk","html_url":"https://github.com/danieldk","followers_url":"https://api.github.com/users/danieldk/followers","following_url":"https://api.github.com/users/danieldk/following{/other_user}","gists_url":"https://api.github.com/users/danieldk/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldk/subscriptions","organizations_url":"https://api.github.com/users/danieldk/orgs","repos_url":"https://api.github.com/users/danieldk/repos","events_url":"https://api.github.com/users/danieldk/events{/privacy}","received_events_url":"https://api.github.com/users/danieldk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-21T13:34:30Z","updated_at":"2016-02-01T10:23:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/texttheater/golang-levenshtein/pulls/6","html_url":"https://github.com/texttheater/golang-levenshtein/pull/6","diff_url":"https://github.com/texttheater/golang-levenshtein/pull/6.diff","patch_url":"https://github.com/texttheater/golang-levenshtein/pull/6.patch"},"body":"The operations are factored out as separate types, making the dynamic\r\nprogramming algorithm completely generic. As a result, you can define\r\ncustom edit distances, e.g.:\r\n\r\nlcs := []EditOperation{\r\n\tMatch{},\r\n\tInsertion{1},\r\n\tDeletion{1},\r\n}\r\n\r\nNew kinds of edit operations can also be added, by implementing the\r\nEditOperation interface (assuming that they work in dynamic programming)."},"comment":{"url":"https://api.github.com/repos/texttheater/golang-levenshtein/issues/comments/177896069","html_url":"https://github.com/texttheater/golang-levenshtein/pull/6#issuecomment-177896069","issue_url":"https://api.github.com/repos/texttheater/golang-levenshtein/issues/6","id":177896069,"user":{"login":"texttheater","id":19344,"avatar_url":"https://avatars.githubusercontent.com/u/19344?v=3","gravatar_id":"","url":"https://api.github.com/users/texttheater","html_url":"https://github.com/texttheater","followers_url":"https://api.github.com/users/texttheater/followers","following_url":"https://api.github.com/users/texttheater/following{/other_user}","gists_url":"https://api.github.com/users/texttheater/gists{/gist_id}","starred_url":"https://api.github.com/users/texttheater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/texttheater/subscriptions","organizations_url":"https://api.github.com/users/texttheater/orgs","repos_url":"https://api.github.com/users/texttheater/repos","events_url":"https://api.github.com/users/texttheater/events{/privacy}","received_events_url":"https://api.github.com/users/texttheater/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T10:23:38Z","updated_at":"2016-02-01T10:23:38Z","body":"<blockquote>In this case it might make sense to just create a new repository for the new API (github.com/texttheater/editdistance?) and then do future API versioning with gopkg.in?</blockquote>\r\n\r\nYes, I think that’s the way to go. I’m not going to get around to it in the foreseeable future though – feel free to make that `gopkg.in/danieldk/editdistance` or perhaps `gopkg.in/editdistance`. :)"}}