Skip to content
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

[dict] retrieve function #7

Open
ghostsquad opened this issue Apr 5, 2022 · 0 comments
Open

[dict] retrieve function #7

ghostsquad opened this issue Apr 5, 2022 · 0 comments

Comments

@ghostsquad
Copy link

currently get looks like this:

get $myDict "key1"

which supports a workflow such as coalesce "foo" "" | get $myDict


This is a request to support the opposite workflow:

retrieve "key1" $myDict

which could be used like:

`. | retrieve  "value"`

I'm not really sure if retrieve if the right verb here, but order matters if you want succinct code and to use pipes in go templates.

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

No branches or pull requests

1 participant