Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TagMatcher ¶
type TagMatcher struct {
// contains filtered or unexported fields
}
func New ¶
func New(matchTags tags.MatchTags, makeIfEmpty bool) *TagMatcher
New will create a new *TagMatcher. If makeIfEmpty is false and matchTags is empty (length zero), nil is returned.
func (*TagMatcher) MatchEach ¶
func (tm *TagMatcher) MatchEach(tags tags.Tags) bool
MatchEach will iterate over each tag key in the *TagMatcher and will return false if the corresponding value in tags does not match one of the values for the key, otherwise true is returned. If the *TagMatcher is nil or is empty, true is returned.
Click to show internal directories.
Click to hide internal directories.