thar we GO

This commit is contained in:
Bel LaPointe
2023-10-25 07:52:05 -06:00
parent f4ca327e86
commit 68fba6b746
3 changed files with 41 additions and 7 deletions

View File

@@ -1,6 +1,8 @@
package ledger
import "regexp"
import (
"regexp"
)
type Like func(Delta) bool
@@ -8,13 +10,13 @@ type likes []Like
func LikeBefore(date string) Like {
return func(d Delta) bool {
return date <= d.Date
return date >= d.Date
}
}
func LikeAfter(date string) Like {
return func(d Delta) bool {
return date >= d.Date
return date <= d.Date
}
}