Reimplement sort by line direction

This commit is contained in:
nemunaire 2022-10-23 10:59:56 +02:00
commit da0187b74d
2 changed files with 57 additions and 16 deletions

View file

@ -15,3 +15,11 @@ func (t *IDFMTime) UnmarshalJSON(b []byte) error {
func (t IDFMTime) MarshalJSON() ([]byte, error) {
return []byte(time.Time(t).Format("\"2006-01-02T15:04\"")), nil
}
func (t *IDFMTime) After(d IDFMTime) bool {
return time.Time(*t).After(time.Time(d))
}
func (t IDFMTime) String() string {
return time.Time(t).String()
}