Chore: use any rather than interface{} (#74066)

This commit is contained in:
Ryan McKinley
2023-08-30 18:46:47 +03:00
committed by GitHub
parent 3e272d2bda
commit 025b2f3011
525 changed files with 2528 additions and 2528 deletions
@@ -9,15 +9,15 @@ type selectQuery struct {
oneExtra bool
where []string
args []interface{}
args []any
}
func (q *selectQuery) addWhere(f string, val interface{}) {
func (q *selectQuery) addWhere(f string, val any) {
q.args = append(q.args, val)
q.where = append(q.where, f+"=?")
}
func (q *selectQuery) addWhereInSubquery(f string, subquery string, subqueryArgs []interface{}) {
func (q *selectQuery) addWhereInSubquery(f string, subquery string, subqueryArgs []any) {
q.args = append(q.args, subqueryArgs...)
q.where = append(q.where, f+" IN ("+subquery+")")
}
@@ -42,7 +42,7 @@ func (q *selectQuery) addWhereIn(f string, vals []string) {
}
}
func (q *selectQuery) toQuery() (string, []interface{}) {
func (q *selectQuery) toQuery() (string, []any) {
args := q.args
sb := strings.Builder{}
sb.WriteString("SELECT ")