Tags.Eq()
This commit is contained in:
@@ -124,3 +124,19 @@ func (tags Tags) ContainsAny(tagName string, values []string) bool {
|
|||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (tags Tags) Eq(other Tags) bool {
|
||||||
|
if len(tags) != len(other) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
for i, tag := range tags {
|
||||||
|
otherTag := other[i]
|
||||||
|
|
||||||
|
if !slices.Equal(tag, otherTag) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user