Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizePattern ¶ added in v0.10.0
NormalizePattern returns the given pattern if it's a valid regex, otherwise it escapes all speical regex characters.
Types ¶
type Address ¶
type Address struct {
// The index of the event
Index int
// The byte offset at which (after parsing) the match either appeared
// or disappeared
Offset int
}
Address refers to a point inside of a recording.
type Appearance ¶ added in v0.1.6
type SearchResult ¶
type SearchResult struct {
// The location of the result in time
Begin, End Address
// The location of the result on the screen
Appearances []Appearance
}
type Searcher ¶ added in v1.12.0
type Searcher struct {
// contains filtered or unexported fields
}
Searcher extracts the printable bytes from its inputs, which it processes as though it were a VT100 terminal, and then allows you to search through them using regexp.
func NewSearcher ¶ added in v0.1.6
func NewSearcher() *Searcher
Click to show internal directories.
Click to hide internal directories.