iancoleman / strcase

A golang package for converting to snake_case or CamelCase
MIT License
1.01k stars 106 forks source link

Conversion to camelcase drops dash characters: "x-abc-123 becomes "XAbc123 #27

Closed mgingios closed 3 years ago

mgingios commented 3 years ago

I need to convert a header key to camelcase, but the current code in strcase is dropping the dash characters. Please consider keeping special characters.

mgingios commented 3 years ago

Arggg! I forgot that camelcase doesn't include dash characters.