Skip to content

Comments

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

Merged
sethvargo merged 2 commits intosethvargo:mainfrom
joaopenteado:lookuper-func
Apr 24, 2025
Merged

Introduce the LookuperFunc type to simplify the creation of custom implementations of the Lookuper interface #129
sethvargo merged 2 commits intosethvargo:mainfrom
joaopenteado:lookuper-func

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