tagMatcher

package
v0.0.0-...-377f66c Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EqFnContains = func(query string, source string) bool {
	return strings.Contains(source, query)
}
View Source
var EqFnEqulas = func(query string, source string) bool {
	return query == source
}

Functions

This section is empty.

Types

type TagMatcher

type TagMatcher struct {
	EqualityFn       func(string, string) bool
	CaseSensitive    bool
	WithoutNamespace bool
	// contains filtered or unexported fields
}

func NewTagMatcher

func NewTagMatcher(queryString string) TagMatcher

func (*TagMatcher) AddTag

func (tm *TagMatcher) AddTag(tagText string)

func (*TagMatcher) GetCurrentPath

func (tm *TagMatcher) GetCurrentPath() string

func (*TagMatcher) MatchesPath

func (tm *TagMatcher) MatchesPath() bool

func (*TagMatcher) RemoveLast

func (np *TagMatcher) RemoveLast()

func (*TagMatcher) TagNameMatchesLastMatch

func (tm *TagMatcher) TagNameMatchesLastMatch() bool

Jump to

Keyboard shortcuts

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