byTime is a wrapper for sorting the entry array by time (with zero time at the end).
| 77 | // byTime is a wrapper for sorting the entry array by time |
| 78 | // (with zero time at the end). |
| 79 | type byTime []*Entry |
| 80 | |
| 81 | func (s byTime) Len() int { return len(s) } |
| 82 | func (s byTime) Swap(i, j int) { s[i], s[j] = s[j], s[i] } |