mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
10 lines
184 B
Go
10 lines
184 B
Go
package main
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
func getUsersGood(db *gorm.DB, names []string) []User {
|
|
res := make([]User, 0, len(names))
|
|
db.Where("name IN ?", names).Find(&res)
|
|
return res
|
|
}
|