You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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)
|
|
}
|