Reimplement sort by line direction
This commit is contained in:
parent
a0659dd9bd
commit
da0187b74d
2 changed files with 57 additions and 16 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue