complete/match/match.go

12 lines
257 B
Go
Raw Normal View History

2017-05-07 11:53:55 -05:00
package match
2017-05-07 11:54:42 -05:00
import "fmt"
2017-05-07 11:53:55 -05:00
// 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 {
2017-05-07 11:54:42 -05:00
fmt.Stringer
2017-05-07 11:53:55 -05:00
Match(prefix string) bool
}