Fix linter errors

This commit is contained in:
go-jet 2021-05-16 19:10:43 +02:00
parent 3021a6a0fd
commit 38541522e6
7 changed files with 18 additions and 14 deletions

View file

@ -59,6 +59,7 @@ func Query(ctx context.Context, db DB, query string, args []interface{}, destPtr
}
}
// ScanOneRowToDest will scan one row into struct destination
func ScanOneRowToDest(rows *sql.Rows, destPtr interface{}) error {
utils.MustBeInitializedPtr(destPtr, "jet: destination is nil")
utils.MustBe(destPtr, reflect.Ptr, "jet: destination has to be a pointer to slice or pointer to struct")