Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Why not define this layout as a standard const value? #42012
Read the docs:
The Go project doesn't use the issue tracker for questions. See https://golang.org/wiki/Questions.
That doesn't seem to be true: https://golang.org/src/time/time.go?s=38148:38191#L1230
Again, I would suggest that you use the forums for these questions before filing bugs.
That comes off a bit aggressive, but I assume you didn't mean it that way.
No,I mean strongly suggest,not that way.The json.marshal may be not a correct example,I mean we use time.Time.String very frequently,so make this layout as a constant may be very pretty or make the string function use time.RFC3339Nano layout would also be better(the second way may be not compatible),otherwise we should define the same layout ourself and it's duplicated.