Skip to content

Conversation

@CFrei
Copy link

@CFrei CFrei commented Nov 18, 2025

I had the issue, that time.Time caused a panic, because it contains private fields. I saw that there is now development, such that private fields won't panic. But then it would only skip the fields, not create a "random" time.

This checks whether a struct is a time.Time and would allow adding other types.

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

Successfully merging this pull request may close these issues.

1 participant