title: Is assigning a pointer atomic in Go?
body: <p>Is assigning a pointer atomic in Go?</p>
  <p>Do I need to assign a pointer in a lock? Suppose I just want to assign the pointer to nil, and would like other threads to be able to see it. I know in Java we can use volatile for this, but there is no volatile in Go.</p>