deltas.Group(GroupName("^[^:]*"))

This commit is contained in:
Bel LaPointe
2023-10-25 08:21:16 -06:00
parent 40cec44c0b
commit 54913b21c9
3 changed files with 43 additions and 0 deletions

View File

@@ -6,6 +6,14 @@ import (
type Deltas []Delta
func (deltas Deltas) Group(group ...Group) Deltas {
result := make(Deltas, 0, len(deltas))
for i := range deltas {
result = append(result, Groups(group).Each(deltas[i]))
}
return result
}
func (deltas Deltas) Like(like ...Like) Deltas {
result := make(Deltas, 0, len(deltas))
for i := range deltas {