Skip to content

Added support for unparseable sections.#72

Merged
unknwon merged 3 commits into
go-ini:masterfrom
gavbaa:master
Dec 21, 2016
Merged

Added support for unparseable sections.#72
unknwon merged 3 commits into
go-ini:masterfrom
gavbaa:master

Conversation

@gavbaa

@gavbaa gavbaa commented Nov 26, 2016

Copy link
Copy Markdown
Contributor

There are public standards ( example: https://github.com/ADL-AICC/AICC-Document-Archive/releases/tag/cmi001v4 ) that are based around INI formats that allow for both standard key/value sections as well as sections that contain raw data that cannot be parsed. My attempt here is to provide a mechanism for leaving unparsed sections in their raw form, while otherwise meeting the INI parsing standards. It's off by default and can only be opted-into on a per-section basis by section name as part of the LoadOptions config. Tests included, and also cover the case-insensitive section names.

@unknwon

unknwon commented Dec 21, 2016

Copy link
Copy Markdown
Member

Thanks!

@unknwon unknwon merged commit 4b84ed0 into go-ini:master Dec 21, 2016
unknwon added a commit that referenced this pull request Dec 21, 2016
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.

2 participants