Documentation
¶
Overview ¶
TODO: Add --name and --note flags to search command to allow searching in notes (currently only searches in item.Name)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HighlightMatches ¶
func HighlightMatches(text string, positions []MatchPosition) string
Types ¶
type MatchPosition ¶
func FindMatches ¶
func FindMatches(text, pattern string, useRegexp, ignoreCase bool) []MatchPosition
type Result ¶
type Result struct {
ID string `json:"id"`
Name string `json:"name"`
HighlightedName string `json:"highlighted_name"`
URL string `json:"url"`
MatchPositions []MatchPosition `json:"match_positions"`
}
func SearchItems ¶
Click to show internal directories.
Click to hide internal directories.