ReplaceRestfulPath 将restful路径转换成apinto的正则匹配路径
(path, replaceStr string)
| 126 | |
| 127 | // ReplaceRestfulPath 将restful路径转换成apinto的正则匹配路径 |
| 128 | func ReplaceRestfulPath(path, replaceStr string) string { |
| 129 | return restfulPathMatchRegexp.ReplaceAllString(path, replaceStr) |
| 130 | } |
| 131 | |
| 132 | // CheckPathContainsIPPort 检查路径中是否包含xxx://ip:port |
| 133 | func CheckPathContainsIPPort(path string) bool { |