Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Problem Marshaling Date Type #77

Open
AlexCuse opened this issue Jan 6, 2021 · 1 comment
Open

Problem Marshaling Date Type #77

AlexCuse opened this issue Jan 6, 2021 · 1 comment

Comments

@AlexCuse
Copy link

AlexCuse commented Jan 6, 2021

It doesn't look like the JSON package is respecting the Date type's MarshalJSON implementation for one reason or another. I am seeing this when trying to pass the PreviousDay quote between two microservices but assume it is an issue elsewhere as well.

You should see the problem in action here: https://play.golang.org/p/ALtnfO0vTHr

@AlexCuse
Copy link
Author

AlexCuse commented Jan 6, 2021

Looks like the problem is the pointer receiver for MarshalJSON. PR incoming.

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

No branches or pull requests

1 participant