From 29f43e246ec41ee311a0a9bc24b15cb4ece4e513 Mon Sep 17 00:00:00 2001 From: Eyal Posener Date: Fri, 5 Jul 2019 14:58:49 +0300 Subject: deprecate match package --- match/prefix.go | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 match/prefix.go (limited to 'match/prefix.go') 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) -} -- cgit v1.2.3