Can someone help me understand how to compare two spring similarities in Golang?

9 Replies, 1383 Views

Hey everyone,

So, I’m kinda stuck on this thing where I need to golang compare two spring similarities. Like, I’ve got two strings, and I wanna figure out how similar they are. Not just == or !=, but like, actual similarity, y’know?

I’ve heard about Levenshtein distance or maybe some libraries that can help, but I’m not sure where to start. Anyone got a quick example or a lib recommendation?

Also, if there’s a better way to golang compare two spring similarities without pulling in a whole library, I’d love to hear it.

Thanks in advance! You guys are lifesavers.

P.S. Sorry if this is a noob question, still getting the hang of Go. 😅

Messages In This Thread
Can someone help me understand how to compare two spring similarities in Golang? - by - 25-09-2024, 09:54 PM



Users browsing this thread: 1 Guest(s)