Just a note: value types are not necessarily safe for concurrent access: e.g. A struct where the fields are not value types. For instance, mutating a field of type slice is not safe (reference type).
A field of type map is not safe for concurrent access as soon as there are inserts as well (unless the inserts are mutex protected) . A sync.Map should be used. :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Just a note: value types are not necessarily safe for concurrent access: e.g. A struct where the fields are not value types. For instance, mutating a field of type slice is not safe (reference type).
A field of type map is not safe for concurrent access as soon as there are inserts as well (unless the inserts are mutex protected) . A sync.Map should be used. :)