Changed from boolean map to struct{} map.
Simplification suggested by golint.