Skip to content

Add support for keyless lookups #5

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
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add support for keyless lookups #5

wants to merge 1 commit into from

Conversation

philomory
Copy link

This PR adds supports for keyless lookups by using "" as a lookup key (because Go doesn't really support optional arguments, or passing nil instead of a string, or anything like that, and I didn't want to break the existing API).

An alternative fix would be to just move the key into the LookupOptions struct, which I think would be more elegant, but it'd be a breaking change.

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.

1 participant