title: Read a Postgresql array directly into a Golang Slice
body: <p>I have a query which returns a row with a single column containing an array of strings (<code>character varying[]</code>):</p>
  
  <pre><code>{http://wp.me/p62MJv-Jc,http://tyrant.click/1LGBoD6}
  </code></pre>
  
  <p>Is there any easy way to read this directly into a Golang slice? E.g.</p>
  
  <pre><code>var arr []string
  
  for rows.Next() {
      rows.Scan(&amp;arr)
      fmt.Println(len(arr))
  }
  </code></pre>
  
  <p>Produces:</p>
  
  <pre><code>0
  </code></pre>