|
|
|
@ -47,6 +47,9 @@ func (s *S) Append(t ...*T) { |
|
|
|
// ContainsAny returns true if any of the values given in `values` matches any
|
|
|
|
// ContainsAny returns true if any of the values given in `values` matches any
|
|
|
|
// of the tag elements.
|
|
|
|
// of the tag elements.
|
|
|
|
func (s *S) ContainsAny(tagName []byte, values [][]byte) bool { |
|
|
|
func (s *S) ContainsAny(tagName []byte, values [][]byte) bool { |
|
|
|
|
|
|
|
if s == nil { |
|
|
|
|
|
|
|
return false |
|
|
|
|
|
|
|
} |
|
|
|
if len(tagName) < 1 { |
|
|
|
if len(tagName) < 1 { |
|
|
|
return false |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
|