Skip to content

Is it possible to use itchyny/gojq as internal query engine? #2711

@tats-u

Description

@tats-u

Please describe your feature request.

yq currently lacks many features in jq. The original jq is written in C, not Go and too difficult to be integrated into yq. There is a re-implementation as Go: https://github.com/itchyny/gojq
It says: You can also embed gojq as a library to your Go products..

It can be expected that you will be able to fix many jq-incompatibility issues.

Describe the solution you'd like

The gh command (GitHub CLI) internally uses https://github.com/itchyny/gojq as the engine of its --jq option without calling or embedding the original jq.

I wonder if it can be adopted by yq.

Describe alternatives you've considered

Implement missing features by ourselves

Additional context

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions