Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Support for omitzero similar to encoding/json from golang 1.24 #224

Open
1 task done
david-its opened this issue Oct 23, 2024 · 0 comments
Open
1 task done

Comments

@david-its
Copy link

Is there an existing feature request for this?

  • I have searched the existing feature requests

Is your feature request related to a problem? Please describe.

It would be great to support omitzero tag working the same way as coming golang 1.24 encoding/json package support.

Describe the solution that you would like.

omitzero tag should trigger calling IsZero() method on value and verify value specific "zero" values.
e.g. it helps with time.Time zero values support.

Describe alternatives you have considered.

No response

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant