A simple Go library for string case conversion. Converts between camelCase, PascalCase, kebab-case, snake_case, and more.
go get github.com/gomantics/sxFor complete documentation, usage examples, and API reference, visit:
import "github.com/gomantics/sx"
sx.CamelCase("hello-world") // helloWorld
sx.PascalCase("hello_world") // HelloWorld
sx.KebabCase("HelloWorld") // hello-world
sx.SnakeCase("HelloWorld") // hello_worldThis library is highly inspired by scule - a fantastic JavaScript string case utility library by the UnJS team.
MIT