summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEyal Posener <[email protected]>2017-05-07 19:54:42 +0300
committerEyal Posener <[email protected]>2017-05-07 19:57:44 +0300
commitdd75ca3afffdc4dadc7f3c74a7d7d63974f7b5df (patch)
tree2f08df98ce25f43dca9691d479d5369b8617d335
parent6fb4875efa1f536813da29972a0c3250bde8b5eb (diff)
Improve Matcher interface
-rw-r--r--match/match.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/match/match.go b/match/match.go
index ffd7eb8..ae95549 100644
--- a/match/match.go
+++ b/match/match.go
@@ -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
}