Skip to content

[BUG] Do not encode unexported fields #234

Open
@rishavmnr

Description

@rishavmnr

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

If there are unexported fields in a struct, it throws a panic.
Context: I'm upgrading the version from 1.2.1 to 1.4.1

reflect: reflect.Value.Set using value obtained using unexported field\n\ngoroutine 447 [running]:\nruntime/debug.Stack()\n

Expected Behavior

No panic.

Steps To Reproduce

In the destination struct, have some unexported fields, maybe pointers.

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions