服务增加是否合并URL中的多余分隔符选项

This commit is contained in:
GoEdgeLab
2021-11-24 14:50:07 +08:00
parent b3c8f94d11
commit aa9ce4e260
3 changed files with 18 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
package utils
// 清理Path中的多余的字符
// CleanPath 清理Path中的多余的字符
func CleanPath(path string) string {
l := len(path)
if l == 0 {