实现websocket基本功能

This commit is contained in:
GoEdgeLab
2020-09-26 19:54:20 +08:00
parent 37b5243eef
commit 423a7f5b24
16 changed files with 910 additions and 189 deletions

View File

@@ -52,3 +52,8 @@ func ParseVariables(source string, replacer func(varName string) (value string))
}
return result.String()
}
// 判断是否有变量
func HasVariables(source string) bool {
return regexpNamedVariable.MatchString(source)
}