Documentation ¶ Index ¶ type And func (a And) Match(tags Tags) bool func (a And) String() string type Expr func ParseExpr(expr string) (*Expr, error) type Or func (s Or) Match(tags Tags) bool func (s Or) String() string type Tags func NewTags(tags ...string) Tags func NewTagsFromPickleTags(pickleTags []*messages.PickleTag) Tags type Term func (t Term) Match(tags Tags) bool func (t Term) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type And ¶ type And struct { LHS *Term `@@` RHS []*Term `("and" @@)*` } func (And) Match ¶ func (a And) Match(tags Tags) bool func (And) String ¶ func (a And) String() string type Expr ¶ type Expr = Or func ParseExpr ¶ func ParseExpr(expr string) (*Expr, error) type Or ¶ type Or struct { LHS *And `@@` RHS []*And `("or" @@)*` } func (Or) Match ¶ func (s Or) Match(tags Tags) bool func (Or) String ¶ func (s Or) String() string type Tags ¶ type Tags map[string]bool func NewTags ¶ func NewTags(tags ...string) Tags func NewTagsFromPickleTags ¶ func NewTagsFromPickleTags(pickleTags []*messages.PickleTag) Tags type Term ¶ type Term struct { Tag string `@Tag |` Not *Term `"not" @@ |` Group *Expr `"(" @@ ")"` } func (Term) Match ¶ func (t Term) Match(tags Tags) bool func (Term) String ¶ func (t Term) String() string Source Files ¶ View all Source files expr.go tags.go Click to show internal directories. Click to hide internal directories.