title: How to convert time.Time variable to atomic in Go?
body: <p>In my RESTFUL web service which is an online game, I'm storing starting time of every question in an global variable like this: <code>var MyTime time.Time</code> which I should update it after every level of the game. My application is distributed, so I want to make sure all of my apps are not updating it at the same time. That's why I've decided to make it atomic.
  Actually I'm familiar with Golang <code>sync/atomic</code> package.
  I tried to use <code>atomic.LoadPointer()</code> method but it needs specific argument type which isn't safe. Do you any other way for this?</p>
  
  <p><strong>Update:</strong> 
  Okay I solved my problem like this. 
  I defined time variable as <code>atomic.Value</code> and used atomic Load and Store methods. This is the code: 
  <code>var myTime atomic.Value
   myTime.Store(newTime)</code> and load <code>myTime.Load().(time.Time)</code>.</p>
  
  <p>Consider that Load() method returns interface, so you should write (time.Time) at the end in order to convert it to time.Time type.</p>