Hi thanks for the excellent lib. I was wondering if there's a reason why Execer -> QueryStructs accepts interface{} instead of []interface{}. It should be pretty safe to assume a slice should always be passed to this method and I originally had mistyped it as just QueryStruct leading to a quite confusing error at runtime. If we can detect this type of mistake at compile time it will be much better.
@mgutz
Hi thanks for the excellent lib. I was wondering if there's a reason why
Execer
->QueryStructs
acceptsinterface{}
instead of[]interface{}
. It should be pretty safe to assume a slice should always be passed to this method and I originally had mistyped it as justQueryStruct
leading to a quite confusing error at runtime. If we can detect this type of mistake at compile time it will be much better.