Files
huangguo_server/common/timeutil/timeslice/timeSlice.go
T
rootandClaude Opus 5 8679200f41 Initial commit
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 13:57:10 +08:00

17 lines
255 B
Go

package timeslice
import "time"
// TimeSlice
type TimeSlice []time.Time
func (t TimeSlice) Len() int {
return len(t)
}
func (t TimeSlice) Swap(i, j int) {
t[i], t[j] = t[j], t[i]
}
func (t TimeSlice) Less(i, j int) bool {
return t[i].Before(t[j])
}