Skip to content

Option for Customizing Field Omission #24

Closed
@inoc603

Description

@inoc603

The new omitzero behavior is very nice, but it can only be defined using tags. Can we introduce a new option to modify the behavior, e.g. treat omitempty as omitzero, so structs imported from another package can be marshaled with the new omitzero behavior?

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