Skip to content

add formatters to field projection #2

@PaluMacil

Description

@PaluMacil

I think adding a formatter to fields (just the final level--like with multi-field projections) would be nice. The field(s) where we apply a format would need to be followed by {something here to specify the format}. Then we could have some formats built in (perhaps a "spew" format since go-spew is already pulled in indirectly by testify, and there are dates/datetimes/durations that probably also need settings besides just picking the formatter) and accessible by gq via flag.

This feature still needs some work.

Keep thinking about whether it's worth the verbosity for a CLI command. I think it is since there are some basic things that just need different representations for different needs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions