Skip to content

Need custom struct tag name #376

@RelicOfTesla

Description

@RelicOfTesla

Describe the feature

ini/struct.go

Line 290 in 5a14e18

tag := tpField.Tag.Get("ini")

Please allow the support of custom tag names, such as "json"

Describe the solution you'd like

iniFile.MapTo(xxx, ini.WithMapToOptionTag("json"))

Describe alternatives you've considered

.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureCategorizes as related to a new feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions