func MatchExtension(path string, extensions []string) bool {
	ext := filepath.Ext(path)
	for _, e := range extensions {
		if strings.EqualFold(ext, "."+e) {
			return true
		}
	}

	return false
}
// MatchExtension returns true if the extension of the provided path
// matches any of the provided extensions.
MatchExtension returns true if the extension of the provided path
matches any of the provided extensions.
// MatchExtension returns true if the extension of the provided path // matches any of the provided extensions .
func MatchExtension(path string, extensions []string) bool {
	ext := filepath.Ext(path)
	for _, e := range extensions {
		if strings.EqualFold(ext, "."+e) {
			return true
		}
	}
	return false
}
func MatchExtension ( path string , extensions [ ] string ) bool { ext := filepath . Ext ( path ) for _ , e := range extensions { if strings . EqualFold ( ext , " " + e ) { return true } } return false }
MatchExtension returns true if the extension of the provided path
matches any of the provided extensions.
MatchExtension returns true if the extension of the provided path matches any of the provided extensions .