IsRestfulParam 检查是否为restful参数
(param string)
| 121 | |
| 122 | // IsRestfulParam 检查是否为restful参数 |
| 123 | func IsRestfulParam(param string) bool { |
| 124 | return restfulParamMatchRegexp.MatchString(param) |
| 125 | } |
| 126 | |
| 127 | // ReplaceRestfulPath 将restful路径转换成apinto的正则匹配路径 |
| 128 | func ReplaceRestfulPath(path, replaceStr string) string { |