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

Add go.mod and time.Time human readable representation #7

Merged
merged 1 commit into from
Sep 25, 2020

Conversation

SchumacherFM
Copy link
Contributor

It always bugs me how time.Time gets printed ... so here is a fix.

If a struct is time.Time it gets printed as time.Date(...) which
hides the private fields of time.Time.

If you have other suggestions or don't like it. Let me know :-)

@alecthomas
Copy link
Owner

Awesome thanks!

@alecthomas
Copy link
Owner

CI is failing though.

If a struct is time.Time it gets printed as time.Date(...) which
hides the private fields of time.Time.

Downgrade to testify 1.4 as Go 1.9 is required

Remove dependency to testify/assert
@alecthomas alecthomas merged commit f2046c2 into alecthomas:master Sep 25, 2020
@SchumacherFM
Copy link
Contributor Author

thank you very much!

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.

2 participants