Json format for time.Time #2189
Unanswered
SajaiPrathap070
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am using time.Time from the time package. I don't know what json field value should I write for time.Time in the unit testing part.
While testing in the API software there is TimeStamp tag and it works but for unit testing I don't know what to fill in with.
Please see the below code and help me out.
This is my struct:
This is my Unit test:
What json value should I give for time.Time field.
Beta Was this translation helpful? Give feedback.
All reactions