sqlx - non-struct dest type struct with >1 columns (2) : <p>I have searched the error and I have find two questions:</p>

<ul>
<li><a href="https://stackoverflow.com/questions/24487943/invoke-golang-struct-function-gives-cannot-refer-to-unexported-field-or-method">This one</a>, but my question is not duplicate  of it</li>
<li><a href="https://stackoverflow.com/questions/28710974/non-struct-dest-type-struct-with-1-columns">And this one</a>, but there is no answer in this question.</li>
</ul>

<p>Here is my code:</p>

<pre><code>package main

import (
    "log"

    "github.com/jmoiron/sqlx"

    _ "github.com/lib/pq"
)

var schema = `
CREATE TABLE films (
  code int,
  name VARCHAR(10)
)`

type Film struct {
    code int
    name string
}

func main() {
    db, err := sqlx.Open("postgres", "user=demas password=root host=192.168.99.100 port=32768 dbname=mydb sslmode=disable")
    if err != nil {
        log.Fatal(err)
    }

    db.MustExec(schema)

    tx := db.MustBegin()
    tx.MustExec("INSERT INTO films(code, name) VALUES($1, $2)", 10, "one")
    tx.MustExec("INSERT INTO films(code, name) VALUES($1, $2)", 20, "two")
    tx.Commit()

    films := []Film{}
    err = db.Select(&amp;films, "SELECT * FROM public.films")
    if err != nil {
        log.Fatal(err)
    }

}
</code></pre>

<p>It creates table and insert 2 records, but can not return them back:</p>

<pre><code>λ go run main.go
2016/09/26 14:46:04 non-struct dest type struct with &gt;1 columns (2)
exit status 1
</code></pre>

<p>How can I fix it ?</p>
