From 6fb4875efa1f536813da29972a0c3250bde8b5eb Mon Sep 17 00:00:00 2001 From: Eyal Posener Date: Sun, 7 May 2017 19:53:55 +0300 Subject: Move match to a separate package --- match/match.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 match/match.go (limited to 'match/match.go') 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 +} -- cgit v1.2.3