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

proposal: affected/package: time/time.go It is recommended to make the layout of the default MarshalText&&UnmarshalJSON configurable #60065

Closed
Mrmanbanpai opened this issue May 9, 2023 · 3 comments

Comments

@Mrmanbanpai
Copy link

I think most people will have such a scenario where RFC3339 is not used as the default layout. We can add an option to control the layout used to deal with more flexible scenarios.
Of course, we will also use type NewType time.Time to implement TextMarshaler && TextUnmarshaler to change the way time is used, but it is more recommended to make a global modification in time.

@gopherbot gopherbot added this to the Proposal milestone May 9, 2023
@dsnet
Copy link
Member

dsnet commented May 9, 2023

I believe this is a duplicate of #21990?

@Mrmanbanpai
Copy link
Author

thx,this proposal seems it would indeed solve my problem elegantly.

@dsnet
Copy link
Member

dsnet commented May 9, 2023

Closing as duplicate.

@dsnet dsnet closed this as completed May 9, 2023
@golang golang locked and limited conversation to collaborators May 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants