Skip to content

Add option for MatchName or similar for decodeMapFromStruct #148

@thespags

Description

@thespags

Hi, is there a way for MapStructure to automatically convert camelCase identifiers to lower_underscore names without having to specify it for each MapStructure? Or is that information lost at runtime by Golang to do accurately?

type Settings struct {
FooBar string mapstructure:"foo_bar"
OneTwo string mapstructure:"one_two"
User string
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions