Add snakeToCamel
All checks were successful
CI / release-test (push) Successful in 4s

This commit is contained in:
wispem-wantex 2025-07-04 21:11:02 -07:00
parent 04d5468dcd
commit 7d044062f7

View File

@ -64,3 +64,11 @@ func ParseSchema(db *sqlx.DB) Schema {
}
return ret
}
func snakeToCamel(s string) string {
parts := strings.Split(s, "_")
for i := 0; i < len(parts); i++ {
parts[i] = strings.ToUpper(string(parts[i][0])) + parts[i][1:]
}
return strings.Join(parts, "")
}