match

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compiles added in v0.5.3

func Compiles(pattern string) bool

func Find

func Find(s *ui.Screen, sel *Selector) (*ui.Node, []*ui.Node, error)

func FindListed

func FindListed(s *ui.Screen, sel *Selector) (*ui.Node, error)

func RegexMatches added in v0.5.3

func RegexMatches(pattern, s string) bool

func TextMatches

func TextMatches(pattern, value string) bool

func Visible

func Visible(s *ui.Screen) []*ui.Node

func VisibleShare

func VisibleShare(r, screen ui.Rect) float64

Types

type InvalidIndex

type InvalidIndex struct{ Value string }

func (*InvalidIndex) Error

func (e *InvalidIndex) Error() string

type Selector

type Selector struct {
	Text, ID, Index, CSS string

	Width, Height, Tolerance *int
	Enabled, Selected        *bool
	Checked, Focused         *bool
	Traits                   []string

	Below, Above, LeftOf, RightOf *Selector
	ContainsChild, ChildOf        *Selector
	ContainsDescendants           []*Selector

	CSSNodes map[int]bool
}

func (*Selector) Describe

func (s *Selector) Describe() string

func (*Selector) Walk

func (s *Selector) Walk(fn func(*Selector))

Jump to

Keyboard shortcuts

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