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

Feature request: Kebab Case function #113

Closed
ghost opened this issue Aug 21, 2018 · 3 comments
Closed

Feature request: Kebab Case function #113

ghost opened this issue Aug 21, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 21, 2018

kebabcase "helloWorld" 

would both produce hello-world, similar to how camelcase and snakecase work.

@Ilyes512
Copy link
Contributor

Ilyes512 commented Sep 6, 2018

Kebabcase had been added to the dependency xstrings that sprig already uses for kebab and camel casing. It easy to add and I will make a pr in a few. Just wondering what to do with documentation. I will first add it and see what’s next.

@technosophos
Copy link
Member

That would be great. The original plan with adding xstrings was to take advantage of some of the other facilities it provides... we just haven't managed to do so yet.

@mattfarina
Copy link
Member

Closing as the PR is merged.

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

3 participants