79210662

Date: 2024-11-21 10:14:52
Score: 1
Natty:
Report link

The query() function of database/sql package is accepting variadic parameter of interface{} or any type, which means it accepts variable numbers of interface{}. To unpack the []interface{}, use the ..., like:

rows, err = db.query(statement, args...)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Farol R