diff options
| author | Eyal Posener <[email protected]> | 2017-05-08 06:33:45 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-05-08 06:33:45 +0300 |
| commit | 6dd6a04d241b1c267d686d5b4b112f8e8d3f7338 (patch) | |
| tree | 28d9df10ae15cb7736f6a57f904eaf95083097ee /match/match.go | |
| parent | e8f6dfad584cb1e3082bc7ea82f8c0551dd944b3 (diff) | |
| parent | 328144c31b5abd57be42f18ffb8a442c78619097 (diff) | |
Merge pull request #8 from posener/move-match
Move match
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 +} |
