Skip to content

Encoding URL query parameters with a function #948

@titpetric

Description

@titpetric

The functions in expr implement toJSON, and I find myself wanting a toQuery to produce url.Values 1 (encoded to query string).

My mind is bendy but I think that the expression to compute this with pipes/existing functions is too much for me.

I can create a custom function, is there some need/want for this in expr/, accepting PRs? Is toQuery naming fine if yes, any other expectations to meet for contributions (CLA?)...

Footnotes

  1. https://pkg.go.dev/net/url#Values

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