Documentation
¶
Overview ¶
Package rag provides a tag filtering language for tagged text
Index ¶
- Constants
- type TagFilter
- func (tagFilter *TagFilter) IsExcludedTag(tag string) bool
- func (tagFilter *TagFilter) IsRequiredOneOfTag(tag string) bool
- func (tagFilter *TagFilter) IsRequiredTag(tag string) bool
- func (tagFilter *TagFilter) IsUntaggedOnly() bool
- func (tagFilter *TagFilter) Reject(inputTags []string) bool
- func (tagFilter *TagFilter) Select(inputTags []string) bool
- func (tagFilter *TagFilter) String() string
Constants ¶
View Source
const AllTagsKeyword = "_all"
View Source
const TagExcludedToken = "-"
View Source
const TagRequiredToken = "+"
View Source
const TagSeparator = ","
View Source
const UntaggedKeyword = "_untagged"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TagFilter ¶
type TagFilter struct {
// contains filtered or unexported fields
}
var FilterNothing *TagFilter
Filter for which Select always returns true
func (*TagFilter) IsExcludedTag ¶
func (*TagFilter) IsRequiredOneOfTag ¶
func (*TagFilter) IsRequiredTag ¶
func (*TagFilter) IsUntaggedOnly ¶
Click to show internal directories.
Click to hide internal directories.