Skip to content

[dict] retrieve function #7

@ghostsquad

Description

@ghostsquad

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions