Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The result of executing the CamelCase method on a string that still contains numbers is incorrect #13

Open
dong50252409 opened this issue Jan 20, 2025 · 0 comments
Assignees

Comments

@dong50252409
Copy link

func main(){
        fmt.Println(strcase.LowerCamelCase("cfg2_test"))
	fmt.Println(strcase.UpperCamelCase("cfg2_test"))

	fmt.Println(strcase.LowerCamelCase(strcase.LowerCamelCase("cfg2_test")))
	fmt.Println(strcase.UpperCamelCase(strcase.UpperCamelCase("cfg2_test")))
}
go run ./main.go
cfg2Test
Cfg2Test
cfg2test
cfg2test

cfg2Test The first letter of the T in the string should be capitalized

@stoewer stoewer self-assigned this Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants