diff options
Diffstat (limited to 'match/prefix.go')
| -rw-r--r-- | match/prefix.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/match/prefix.go b/match/prefix.go deleted file mode 100644 index 9a01ba6..0000000 --- a/match/prefix.go +++ /dev/null @@ -1,9 +0,0 @@ -package match - -import "strings" - -// Prefix is a simple Matcher, if the word is it's prefix, there is a match -// Match returns true if a has the prefix as prefix -func Prefix(long, prefix string) bool { - return strings.HasPrefix(long, prefix) -} |
