summaryrefslogtreecommitdiff
path: root/match/match.go
blob: ae955498aed4b8376923a467b8f89beeaee0b487 (plain)
1
2
3
4
5
6
7
8
9
10
11
package match

import "fmt"

// Matcher matches itself to a string
// it is used for comparing a given argument to the last typed
// word, and see if it is a possible auto complete option.
type Matcher interface {
	fmt.Stringer
	Match(prefix string) bool
}