B
B
bodrich2019-12-20 07:49:42
go
bodrich, 2019-12-20 07:49:42

Why doesn't it work on 1.11 but works on 1.12/1.13?

There is this function:

func Select(request string, obj interface{}, values ...interface{}) (interface{}, error) {
  var Products []Product
  return Products, psql.Select(request, &Products, values...)
}

If you use go version 1.11 - then in the place where Select is called, it arrives instead of Products nil
. If you use go version 1.12 - then there is data in the slice. Just wondering what it has to do with? Is this a bug? Feature?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max Strekalovsky, 2019-12-20
@Strklvsk

https://golang.org/doc/go1.12
You could also read

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question