Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for field name remapping hook #176

Closed
wants to merge 3 commits into from
Closed

Conversation

15cm
Copy link

@15cm 15cm commented Nov 11, 2019

Solves #89. Add support to match field name with map key in snake_case or kebab-case convention.

@camdencheek
Copy link
Contributor

This could be made more generally useful by allowing users to provide a matching function. Something like type FieldMatchFunc func(from, to string) bool

@15cm
Copy link
Author

15cm commented Apr 5, 2020

In my opinion, it's too heavy for a user to provide a function in a config and several enumerations should cover all naming styles.

mapstructure.go Outdated Show resolved Hide resolved
@mitchellh
Copy link
Owner

#250

@mitchellh mitchellh closed this Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants