Original post

My program concurrently walks through the file system looking for files of specific file extensions. The extensions are stored in a `map[string]struct{}` that I pass to each goroutine, and for each file, I check to see if the file extension is in the map. I’ve run it a few times and honestly it seems to work fine, and naively I don’t see why it wouldn’t; they’re just reads. I even ran it with `-race` and it didn’t yell at me at all. However, I’ve read online that the standard `map` isn’t thread-safe, even for reads. Am I missing something?