Almost every language has a function that returns whether a key exists in the map. In go it would be something like:
_, ok := m[thing_to_be_found]
So it doesn't matter what you put in there, including struct{}.