strcase
Convert Go strings between common naming styles.
iancoleman · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a new Go module, add github.com/iancoleman/strcase at v0.3.0. Format a sample field name in snake and camel case.
What we tested
v0.3.0. Format a sample field name in snake and camel case. Generated the expected snake-case and lower camel-case names.