From dd75ca3afffdc4dadc7f3c74a7d7d63974f7b5df Mon Sep 17 00:00:00 2001 From: Eyal Posener Date: Sun, 7 May 2017 19:54:42 +0300 Subject: [PATCH] Improve Matcher interface --- match/match.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }