complete/match/match.go

8 lines
281 B
Go
Raw Normal View History

2019-03-08 01:25:01 -06:00
// Package match contains matchers that decide if to apply completion.
2017-05-07 11:53:55 -05:00
package match
2017-05-11 12:48:40 -05:00
// Match matches two strings
// it is used for comparing a term to the last typed
// word, the prefix, and see if it is a possible auto complete option.
type Match func(term, prefix string) bool