// GetUserByUsername return a list of users search by username
GetUserByUsername return a list of users search by username
// GetUserByUsername return a list of users search by username
func (ur *UserOracleRepository) GetUserByUsername(username string) []models.User {
	rows, err := ur.Tx.Query(FIND_BY_USERNAME, username)
	if err != nil {
		return []models.User{}
	}
	return RowsToUser(rows, false)
}
func ( ur * UserOracleRepository ) GetUserByUsername ( username string ) [ ] models . User { rows , err := ur . Tx . Query ( FIND_BY_USERNAME , username ) if err != nil { return [ ] models . User { } } return RowsToUser ( rows , false ) }
GetUserByUsername return a list of users search by username
GetUserByUsername return a list of users search by username