Improve Matcher interface
This commit is contained in:
parent
6fb4875efa
commit
dd75ca3aff
|
@ -1,9 +1,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 {
|
||||
String() string
|
||||
fmt.Stringer
|
||||
Match(prefix string) bool
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue