支持tdengine

This commit is contained in:
XM-GO
2023-06-19 17:06:38 +08:00
parent 997e0862fa
commit 8b5a0206b9
12 changed files with 186 additions and 99 deletions

17
pkg/tool/base.go Normal file
View File

@@ -0,0 +1,17 @@
package tool
import (
"regexp"
"strings"
)
func ToCamelCase(s string) string {
re := regexp.MustCompile(`[_\W]+`)
words := re.Split(s, -1)
for i := range words {
if i != 0 {
words[i] = strings.Title(words[i])
}
}
return strings.Join(words, "")
}