Skip to content

Introduce the LookuperFunc type to simplify the creation of custom implementations of the Lookuper interface #129

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

Merged
merged 2 commits into from
Apr 24, 2025

Conversation

joaopenteado
Copy link
Contributor

This PR introduces a new type, LookuperFunc, analogous to the existing MutatorFunc, with the intent of providing an easy way to create custom implementations of the Lookuper interface directly from an anonymous function. I've also added the related test cases, but let me know if I overlooked anything.

@sethvargo sethvargo enabled auto-merge (squash) April 24, 2025 14:08
@sethvargo sethvargo merged commit db7a7a5 into sethvargo:main Apr 24, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants