summaryrefslogtreecommitdiff
path: root/match/match.go
diff options
context:
space:
mode:
Diffstat (limited to 'match/match.go')
-rw-r--r--match/match.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/match/match.go b/match/match.go
new file mode 100644
index 0000000..ffd7eb8
--- /dev/null
+++ b/match/match.go
@@ -0,0 +1,9 @@
+package match
+
+// 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
+ Match(prefix string) bool
+}