learning_go/testing/go-code-samples/awesomeProject/error-handling/verifypath.go
2025-12-20 17:00:05 +03:00

9 lines
158 B
Go

package main
import "regexp"
func isValidPath(p string) bool {
pathRe := regexp.MustCompile(`(invalid regular expression`)
return pathRe.MatchString(p)
}