Skip to content

Read json struct tags when toml tags are absent #880

@sparr

Description

@sparr

With go-toml v2 changing struct tag formatting to match the encoding/json package, it should now be possible to read and use json tags when toml tags are absent.

This behavior would reduce the amount of repetitive tagging required for cases such as opencontainers/image-spec#1073.

It might be optional, enabled by default, or always on. Each of these would have different impact on existing and future use cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions