Replace interface{} with any

This commit is contained in:
ionutboangiu
2023-05-29 11:44:03 -04:00
committed by Dan Christian Bogos
parent 1d7bd1389b
commit 113e2a2bdf
628 changed files with 7230 additions and 7230 deletions

View File

@@ -194,8 +194,8 @@ func (sqls *SQLStorage) GetTpTableIds(tpid, table string, distinct []string,
if err != nil {
return nil, err
}
vals := make([]string, len(cols)) // Allocate enough values
ints := make([]interface{}, len(cols)) // Make a slice of []interface{}
vals := make([]string, len(cols)) // Allocate enough values
ints := make([]any, len(cols)) // Make a slice of []any
for i := range ints {
ints[i] = &vals[i] // Copy references into the slice
}