Documentation ¶ Overview ¶ Package search provides substring filtering and fuzzy key suggestions. Index ¶ func Filter(term string, keys []string) []string func Suggest(query string, candidates []string, maxResults int) []string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Filter ¶ func Filter(term string, keys []string) []string Filter returns the subset of keys that contain term (case-insensitive). func Suggest ¶ func Suggest(query string, candidates []string, maxResults int) []string Suggest returns up to maxResults keys from candidates that are closest to query, ranked by a combined score: substring matches first, then by Levenshtein distance. Candidates with a distance greater than the adaptive threshold are excluded. Types ¶ This section is empty. Source Files ¶ View all Source files search.go Click to show internal directories. Click to hide internal directories.