// MapToStructfuncGetUsersByIDs(userIDs[]int64)(users[]User,errerror){iter:=Cassandra.Query("SELECT * FROM user WHERE id IN ?",userIDs).Iter()for{row:=make(map[string]interface{})if!iter.MapScan(row){break}user:=User{}err=sqlext.MapToStruct(row,&user)iferr!=nil{returnnil,err}users=append(users,user)}returnusers,nil}