'concurrent access to a uint64 in golang [closed]

If multiple goroutines access one uint64, the read will never get some other value than the ones that are written to that uint64. Is this correct?



Solution 1:[1]

Is this correct?

No, this is plain and totally wrong in each and every case.

You must not write code with data races. This "must not" is not negotiable.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Volker