route/vendor/github.com/posener/complete/match/match.go

7 lines
210 B
Go
Raw Normal View History

2017-12-02 23:34:35 +00:00
package match
// 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