stringy
stringy copied to clipboard
Convert string to camel case, snake case, kebab case / slugify, custom delimiter, pad string, tease string and many other functionalities with help of by Stringy package.

like `snake("foo-bar")`?
Since this library wraps a lot of built-in functions, I miss this one(essentially a snake case but with spaces): https://pkg.go.dev/strings#Title
that would be nice to configure acronyms to make specific combinations be treated as words. words like: `IPv6` -> `ipv6`, `CDNs` -> `cdns`
Something that converts from `CamelCase`, `snake_case`, `kebab-case` to `Sentence case` e.g. `ThisIsCamelCase` to `This is camel case` ```golang func (i *input) SentenceCase(rule ...string) StringManipulation { input := getInput(*i) wordArray :=...
**Describe the bug** The CamelCase method in the package is currently not handling PascalCase and camelCase strings correctly. Specifically, the method converts both lower case of the input when the...
# Description Fields() does a better job while splitting strings on a white space as mentioned by Go. > Fields splits the string s around each instance of one or...
I figure that if the user is just passing in a single " " then that would match that case. However it don't handle the case of multiple `" "`...