8000 Support Short-circuit load by ygj6 · Pull Request #261 · go-ini/ini · GitHub
[go: up one dir, main page]

Skip to content

Support Short-circuit load - #261

Merged
unknwon merged 2 commits into
go-ini:masterfrom
ygj6:issue180
Sep 5, 2020
Merged

unknwon merged 2 commits into
go-ini:masterfrom
ygj6:issue180

Conversation

@ygj6
@ygj6 ygj6 commented Sep 1, 2020 •
Copy link
Copy Markdown
Contributor

What problem should be fixed?

Short-circuit load #180

  1. The ShortCircuit option is adde
  2. A judgment is added to the Reload() method to implement short-circuit load.

Note: When ShortCircuit and Loose are both true, ShortCircuit has priority over Loose.

Have you added test cases to catch the problem?

Yes, all CI pass the test.

@unknwon unknwon left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Please see inline comments.

Comment thread file.go Resolved
Comment thread file.go Resolved
Comment thread ini.go Resolved
@unknwon unknwon added the status: reviewed The pull request has been reviewed label Sep 3, 2020
@unknwon unknwon left a comment
Copy link
Copy Markdown
Member
8000

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the follow up! Few more styling comments.

Comment thread file.go Resolved
Comment thread ini.go Resolved
Comment thread file.go Resolved
Comment thread file.go Resolved
@unknwon unknwon left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for keeping this up!

Comment thread ini_test.go Resolved
Comment thread ini_test.go Resolved
@unknwon
unknwon merged commit fcd0515 into go-ini:master Sep 5, 2020
@unknwon unknwon mentioned this pull request Sep 5, 2020
@unknwon
unknwon commented Sep 5, 2020
Copy link
Copy Markdown
Member

https://github.com/go-ini/ini/releases/tag/v1.61.0 has tagged for this merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: reviewed The pull request has been reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0