Better Memory Management in Golang for Lookups Against a Static Data Set
When you want to check a value against a list of stored values, there are several ways to do it.
One way, which is not very performant, is to loop through a slice of values:
needle := "three"
haystack := []string{ "one", "two", "three" }
found := fal...
colinj.hashnode.dev3 min read