diff options
| author | Eyal Posener <[email protected]> | 2017-05-07 19:53:55 +0300 |
|---|---|---|
| committer | Eyal Posener <[email protected]> | 2017-05-07 19:57:41 +0300 |
| commit | 6fb4875efa1f536813da29972a0c3250bde8b5eb (patch) | |
| tree | c7ee97d75ed8d1d6c734256e3ff789402571bcca /match/match.go | |
| parent | e8f6dfad584cb1e3082bc7ea82f8c0551dd944b3 (diff) | |
Move match to a separate package
Diffstat (limited to 'match/match.go')
| -rw-r--r-- | match/match.go | 9 |
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 +} |
