Y
Hacker News
new
|
ask
|
show
|
jobs
by
eloff
3988 days ago
You would have to use sync.Atomic for all reads and writes. If you just use normal reads and writes it's in violation of the Go language memory model. It might work for now or it might start a nuclear war. You never know.