title: pass array to go-pg query
body: <p>I'm using Go-pg and when I use the following way to execute sql query:</p>
  
  <pre><code>db.Query(&amp;result, sqlQuery, params)
  </code></pre>
  
  <p>where <code>params</code> is a structure like the following:</p>
  
  <pre><code>type MyParams struct {
      Codes []int
  }
  </code></pre>
  
  <p>and <code>sqlQuery</code> is </p>
  
  <pre><code>SELECT id FROM bar WHERE code_id IN (?codes)
  </code></pre>
  
  <p>in the actual SQL query I get query like this:</p>
  
  <pre><code>SELECT id FROM bar WHERE code_id IN ('[7,45]')
  </code></pre>
  
  <p>Is it possible to have int array placeholder passed properly to have a query:</p>
  
  <pre><code>SELECT id FROM bar WHERE code_id IN (7,45)
  </code></pre>