实现websocket基本功能

This commit is contained in:
刘祥超
2020-09-26 19:54:20 +08:00
parent 3d113cf8f5
commit c272658c73
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)
}