Skip to content

Support for recursive poly struct? #1

@fengye87

Description

@fengye87

I bumped into this project while looking for a lib to solve marshaling my poly struct to JSON (and back from it too). But my poly struct is recursive. Say like

type Shape interface {}

type Square struct {
    ...
    Child Shape
}

type Triangle struct {
    ...
    Child Shape
}

So Child would not marshal/unmarshal as expected here. Any way to support it?

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