iancoleman / strcase

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

add method ToSnakeWithIgnore #17

Closed jzlikewei closed 4 years ago

jzlikewei commented 4 years ago

Change-Id: Id75f3d34d1ffc13a53351cdec79b2130cb8ffa66

jzlikewei commented 4 years ago

fix Issuse https://github.com/iancoleman/strcase/issues/16

floydspace commented 4 years ago

@jzlikewei I think ignoring some symbols is anti-pattern of snake_case strings. if a string is snake it shouldn't contain dots and whatever symbols except underscore. But anyway the issue https://github.com/iancoleman/strcase/issues/16 is still valid.

iancoleman commented 4 years ago

Thanks for this.

I did some small tidy up, see https://github.com/iancoleman/strcase/commit/13740a6cff9b453af0e984881c3f392922441eff