title: How to store Golang time.time in Postgresql timestamp?
body: <p>May I know how to store the <code>time.time</code> object in Postgresql?</p>
  
  <p>For example, the SQL query:</p>
  
  <p><code>INSERT INTO "UserAccount" ("email", "login_time") VALUES ('human@example.com', 2017-12-12 00:58:26.9589451 +0800 +08 m=+1406.914186601)</code></p>
  
  <p>I tried to use <code>loginTime := time.Now()</code>, and it gives a time format that Postgresql don't really understand, e.g. <em>2017-12-12 00:58:26.9589451 +0800 +08 m=+1406.914186601</em></p>
  
  <p>But if I try to use <code>loginTime := time.Now().Format(time.RFC3339)</code>, and the compiler complain that <code>loginTime</code> is a <code>string</code>, and I need it to be <code>time.time</code> type.</p>
  
  <p>May I know how to handle this?</p>
  
  <p><em>Sorry for asking newbie question, new to both Golang and Postgres. :)</em></p>