add LikeBefore

main
bel 2023-10-24 20:50:49 -06:00
parent 1822a32fc3
commit 21fed9437f
1 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,12 @@ type Like func(Delta) bool
type likes []Like
func LikeBefore(date string) Like {
return func(d Delta) bool {
return date <= d.Date
}
}
func LikeAfter(date string) Like {
return func(d Delta) bool {
return date >= d.Date