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

Investigate omitzero #1134

Open
morremeyer opened this issue Feb 13, 2025 · 0 comments
Open

Investigate omitzero #1134

morremeyer opened this issue Feb 13, 2025 · 0 comments
Labels
development Things that support development of the software

Comments

@morremeyer
Copy link
Member

go 1.24 adds an omitzero tag for JSON marshalling, check the encoding/json section in https://go.dev/doc/go1.24.

This might be helpful specfically for transaction dates, since

In particular, unlike omitempty, omitzero omits zero-valued time.Time values, which is a common source of friction.

@morremeyer morremeyer added the development Things that support development of the software label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Things that support development of the software
Projects
None yet
Development

No branches or pull requests

1 participant