iancoleman / strcase

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

Update snake.go #6

Closed bestplay closed 6 years ago

bestplay commented 6 years ago

Consider userID to user_id

bestplay commented 6 years ago

Hi @iancoleman

iancoleman commented 6 years ago

Good idea, thanks for submitting the PR.

Please add a test to snake_test.go

This change breaks the existing test for "JSONData" being converted to "json_data"

I'm interested in adding this feature but it can't break existing tests. If you can add the test and get them all passing that'd be great. Otherwise I'll try to add this feature sometime in the near future.

bestplay commented 6 years ago

@iancoleman Sorry for the late reply.