add LikeAfter
This commit is contained in:
@@ -6,6 +6,12 @@ type Like func(Delta) bool
|
||||
|
||||
type likes []Like
|
||||
|
||||
func LikeAfter(date string) Like {
|
||||
return func(d Delta) bool {
|
||||
return date >= d.Date
|
||||
}
|
||||
}
|
||||
|
||||
func LikeAcc(pattern string) Like {
|
||||
return func(d Delta) bool {
|
||||
return like(pattern, d.Account)
|
||||
|
||||
Reference in New Issue
Block a user