title: How do I format an unix timestamp to RFC3339 - golang?
body: <p>I need to convert a unix  timestamp ( e.g <code>1392899576</code> ) into RFC3339 ( e.g. 1997-07-16T19:20+01:00 ) . I've tried the code below</p>
  
  <pre><code>    timeValue := "1392899576"
      layout := time.RFC3339
      t, _ := time.Parse(layout, timeValue)
  
      fmt.Fprintf(w, "%s", t)
  </code></pre>
  
  <p>which returns </p>
  
  <pre><code>0001-01-01 00:00:00 +0000 UTC
  </code></pre>