Navigation Menu

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

time: should times and durations be sortable? #5019

Closed
robpike opened this issue Mar 9, 2013 · 4 comments
Closed

time: should times and durations be sortable? #5019

robpike opened this issue Mar 9, 2013 · 4 comments

Comments

@robpike
Copy link
Contributor

robpike commented Mar 9, 2013

What is the best way to sort a slice of times? It might be worth providing the hooks in
the time package for that. This is just a reminder to think about the issue.
@rsc
Copy link
Contributor

rsc commented Dec 4, 2013

Comment 1:

Labels changed: added repo-main.

@rsc
Copy link
Contributor

rsc commented Mar 3, 2014

Comment 2:

Adding Release=None to all Priority=Someday bugs.

Labels changed: added release-none.

@sbinet
Copy link
Member

sbinet commented Feb 13, 2015

tentatively: https://golang.org/cl/4813

@robpike
Copy link
Contributor Author

robpike commented Feb 13, 2015

Closing as not worthwhile.

@robpike robpike closed this as completed Feb 13, 2015
sbinet added a commit to sbinet/golang-go that referenced this issue Feb 19, 2015
Slice is a []Time satisfying sort.Interface by leveraging
Time.Before(t) to sort times in increasing order.

Fixes golang#5019

Change-Id: If97d3b070f0ebc14e3ac0b8eb06adf7e9cfd3462
@golang golang locked and limited conversation to collaborators Jun 24, 2016
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

4 participants