-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
Issue with type based on time.Time #23
Comments
Yes, sure. I'll check it this weekend. |
Thanks @imdario |
@imdario any luck with this? thanks |
No, sorry, I was kinda sick and I didn't have the energy to look at this. I will try this week. |
ok thanks @imdario |
I just tested with just |
@imdario, doesn't this:
mean that if the destination pointer exists, it will try to deep-merge anyway, instead of overwriting the whole struct the pointer points to? |
Yes, you are right. "overwrite" should be used with dst.IsNil(). If dst is not nil, as in your case, it won't check if it must overwrite it anyway. Good catch! I modify it, test and push it to master. |
A little test and... Ta-da! That little sneaky bug has been fixed. Please, update your local repository and check if it works for you too. Sorry for not being able to work on this before. |
Great, thanks @imdario ! |
I have a
Date
type:The type is used for date-only JSON representation. I AM using a pointer to Date:
and
MergeWithOverwrite
does not work unfortunately.Could you help with this?
The text was updated successfully, but these errors were encountered: