// FindUser allows to retrieve a user by its characteristics
FindUser allows to retrieve a user by its characteristics
// FindUser allows to retrieve a user by its characteristics
func (db *Mysql) FindUser(params params.M) (*models.User, error) {
	var firstName string
	fmt.Println("finding user:", params)
	var rows, err = db.Query("SELECT * FROM users WHERE email = $1", params)
	utils.CheckErr(err)
	utils.CheckErr(rows.Scan(&firstName))
	return nil, nil
}
func ( db * Mysql ) FindUser ( params params . M ) ( * models . User , error ) { var firstName string fmt . Println ( " " , params ) var rows , err = db . Query ( " " , params ) utils . CheckErr ( err ) utils . CheckErr ( rows . Scan ( & firstName ) ) return nil , nil }
FindUser allows to retrieve a user by its characteristics
FindUser allows to retrieve a user by its characteristics