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

Dig into dict #254

Merged
merged 4 commits into from
Dec 2, 2020
Merged

Dig into dict #254

merged 4 commits into from
Dec 2, 2020

Conversation

nyarly
Copy link
Contributor

@nyarly nyarly commented Jun 30, 2020

Adds a pipeline-compatible dig function - traverses a list of keys to
return a value, or a default if no value provided.

Future work, if required: allow dig to walk into lists with numeric
indexes.

Closes #227

nyarly added 2 commits June 30, 2020 09:28
Adds a pipeline-compatible `dig` function - traverses a list of keys to
return a value, or a default if no value provided.

Future work, if required: allow `dig` to walk into lists with numeric
indexes.

Closes Masterminds#227
dict.go Outdated Show resolved Hide resolved
@mattfarina mattfarina merged commit ef25c39 into Masterminds:master Dec 2, 2020
@ruben-gp
Copy link

ruben-gp commented Mar 1, 2022

Hi,
I would like to know if it could be possible to expose digFromDict function, as it's also quite convenient to pass an array of strings for using it programmatically to develop (somehow) generic named templates, creating that array automatically.
Thanks a lot in advance.

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.

Feature Request: dict function, nestedValue
4 participants