func PathMatch(pattern, name string) (bool, error) {
	return matchWithSeparator(pattern, name, filepath.Separator, true)
}
PathMatch returns true if `name` matches the file name `pattern`. The
difference between Match and PathMatch is that PathMatch will automatically
use your system's path separator to split `name` and `pattern`. On systems
where the path separator is `'\'`, escaping will be disabled.

Note: this is meant as a drop-in replacement for filepath.Match(). It
assumes that both `pattern` and `name` are using the system's path
separator. If you can't be sure of that, use filepath.ToSlash() on both
`pattern` and `name`, and then use the Match() function instead.
package doublestar
import (
	"path/filepath"
	"unicode/utf8"
)
func Match(pattern, name string) (bool, error) {
	return matchWithSeparator(pattern, name, '/', true)
}