schollz / closestmatch

Golang library for fuzzy matching within a set of strings :page_with_curl:
MIT License
420 stars 50 forks source link

Add the ability to associate an object to the match. #2

Open Mistobaan opened 7 years ago

Mistobaan commented 7 years ago

it would be useful to associate an interface{} to the word, or return an index of the match.

Yugloocamai commented 7 years ago

Yes, this would be GREAT! I expected this actually, and just ran into a wall.

Yugloocamai commented 7 years ago

@Mistobaan I forked and added interface associations, might be helpful to you. https://github.com/Yugloocamai/closestmatch

schollz commented 7 years ago

@Yugloocamai I think I'd rather not modify this version, as it will break some things I've made that depend on it. Would you like to make a PR in this project's README to guide people to your project?