iancoleman / strcase

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

Unicode? Consider processing as runes instead of bytes #40

Open tliron opened 2 years ago

tliron commented 2 years ago

Very useful library. Thank you. :)

Processing as bytes works fine for the Latin alphabet, but processing as runes could allow the library to process other Unicode alphabets, using unicode.ToLower and related stdlib functions.

It might be even more useful to support both kinds of processing, perhaps a separate set of functions for Unicode, e.g. `ToCamelCaseUnicode", etc.