Move schema parsing to its own package
All checks were successful
CI / release-test (push) Successful in 4s
All checks were successful
CI / release-test (push) Successful in 4s
This commit is contained in:
11
pkg/textutils/snake.go
Normal file
11
pkg/textutils/snake.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package textutils
|
||||
|
||||
import "strings"
|
||||
|
||||
func SnakeToCamel(s string) string {
|
||||
parts := strings.Split(s, "_")
|
||||
for i := range len(parts) {
|
||||
parts[i] = strings.ToUpper(string(parts[i][0])) + parts[i][1:]
|
||||
}
|
||||
return strings.Join(parts, "")
|
||||
}
|
||||
Reference in New Issue
Block a user