Skip to content

Encoder interface not respected for interface{} types #121

@TomK

Description

@TomK

when encoding a struct field with an interface{} or any type, using a type that implements Encoder is not respected

It seems that only the field type in the struct is checked for Encoder interface, and not the value of the field.

Playground: https://go.dev/play/p/VTG-X_HgunK

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