diff options
Diffstat (limited to 'match/match.go')
| -rw-r--r-- | match/match.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/match/match.go b/match/match.go new file mode 100644 index 0000000..ae95549 --- /dev/null +++ b/match/match.go @@ -0,0 +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 { + fmt.Stringer + Match(prefix string) bool +} |
