Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VisitAtoms ¶
VisitAtoms runs `v` on all atom queries within `q`.
Types ¶
type Q ¶
type Q interface {
String() string
}
Q is a representation for a possibly hierarchical search query.
func ExpandFileContent ¶
Expand expands Substr queries into (OR file_substr content_substr) queries, and the same for Regexp queries..
type Substring ¶
type Substring struct {
Pattern string
CaseSensitive bool
// Match only filename
FileName bool
// Match only content
Content bool
}
Substring is the most basic query: a query for a substring.
type SuggestQueryError ¶
func (*SuggestQueryError) Error ¶
func (e *SuggestQueryError) Error() string
Click to show internal directories.
Click to hide internal directories.