Skip to content

feat: add customizable ParseBool and FormatBool in LoadOptions#384

Open
Yurunsoft wants to merge 2 commits into
go-ini:mainfrom
Yurunsoft:bool
Open

feat: add customizable ParseBool and FormatBool in LoadOptions#384
Yurunsoft wants to merge 2 commits into
go-ini:mainfrom
Yurunsoft:bool

Conversation

@Yurunsoft

Copy link
Copy Markdown

Describe the pull request

A clear and concise description of what the pull request is about, i.e. what problem should be fixed?

We have a project where the client requires boolean values to be saved as 1 and 0.
Previously, boolean values were always stored as true and false.
This PR supports custom handling of boolean types via LoadOptions.

Link to the issue: n/a

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code.

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.

1 participant