tag

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL