Skip to content

Loading to slice #81

Answered by nikitawootten
vuongtendo asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @vuongtendo, you should pass the address of your pointer into sess.Query(), like so:

if err := sess.Query(ctx, query, params, &animals) {
      panic(err)
}

Out of interest, what is the result of the code you wrote? I can work on making that clearer through docs and possibly a clearer error message.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nikitawootten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants