-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
time: package has two different arrays with long month names #36359
Comments
For something this small, I would just send a patch. It'll get reviewed (and accepted, or rejected) directly on gerrit. |
While you're in format.go , the shortDayNames array (line 296) could also be removed, if you reuse the longDayNames and take the first 3 characters - in this case it happens to match for all days. Same for shortMonthNames array, seems like all 3 letter months have the same first 3 letters as in longMonthNames also time.go: 326 there's a days array , format.go : 286 has longDayNames array |
Cool, i will get on it. |
Change https://golang.org/cl/213177 mentions this issue: |
What version of Go are you using (
go version
)?Seems to me that there doesn't need to be code duplication here.
Do you mind if i remove it?
https://github.com/golang/go/blame/master/src/time/time.go#L288
https://github.com/golang/go/blame/master/src/time/format.go#L321
The text was updated successfully, but these errors were encountered: