Skip to content

🐛 [Bug]: using value obtained using unexported field #3500

Open
@lublak

Description

@lublak

Bug Description

Currently in v3 (not testet in v2):
If you parse the query to an struct which has private fields you get a panic error:

using value obtained using unexported field

How to Reproduce

Steps to reproduce the behavior:

  1. Create a struct with private/not exported fields
  2. c.Bind().Query(&p) to the struct

Expected Behavior

should be throw a normal error and not panic

Fiber Version

v3.0.0-beta.4

Code Snippet (optional)

Checklist:

  • I agree to follow Fiber's Code of Conduct.
  • I have checked for existing issues that describe my problem prior to opening this one.
  • I understand that improperly formatted bug reports may be closed without explanation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions