(pattern, value string)
| 235 | } |
| 236 | |
| 237 | func RegexpMatch(pattern, value string) bool { |
| 238 | re, err := regexp.Compile(pattern) |
| 239 | if err != nil { |
| 240 | return false |
| 241 | } |
| 242 | return re.MatchString(value) |
| 243 | } |
| 244 | |
| 245 | // 文件是否存在 |
| 246 | func Exists(path string) bool { |
no outgoing calls