Skip to content

Add support for keyless lookups#5

Open
philomory wants to merge 1 commit intojerakia:masterfrom
magicmemories:feature/support-keyless-lookups
Open

Add support for keyless lookups#5
philomory wants to merge 1 commit intojerakia:masterfrom
magicmemories:feature/support-keyless-lookups

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