-
Notifications
You must be signed in to change notification settings - Fork 0
Feature implementation from commits fdd8865..8755356 #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
yashuatla
wants to merge
15
commits into
feature-base-1
Choose a base branch
from
feature-head-1
base: feature-base-1
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.21.0 to 0.22.0. - [Release notes](https://github.com/golang/text/releases) - [Commits](golang/text@v0.21.0...v0.22.0) --- updated-dependencies: - dependency-name: golang.org/x/text dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
samber#587) - Modify the iteration function parameters in the UniqueBy, GroupByMap, and Keyify functions to use index access for collection elements. - Optimize parameter naming in the GroupByMap function to improve code readability. - Add test cases for the GroupByMap function to cover different types of inputs. Co-authored-by: ShuQingZai <[email protected]>
docs: modify mutable example docs
* fix: Issue 605 * Add the Ternary comment from prev commit to function docstring
* feat: Add NthOr and NthOrEmpty functions This commit introduces two new functions, `NthOr` and `NthOrEmpty`, to the `find` package. These functions provide a safer way to access elements at a specific index in a slice, handling out-of-bounds scenarios gracefully. - `NthOr`: Returns the element at the specified index or a provided fallback value if the index is out of bounds. - `NthOrEmpty`: Returns the element at the specified index or the zero value for the slice's element type if the index is out of bounds. * update readme
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Summary
Enhanced Throttling Implementation with Generics
Overview
This PR enhances the throttling functionality by refactoring it to use generics, allowing throttling by arbitrary comparable keys instead of just a simple counter. It also adds documentation and comprehensive test coverage for the new functionality.
Change Types
Affected Modules
condition.go
retry.go
retry_example_test.go
retry_test.go
Notes for Reviewers