Mirror of https://github.com/cue-lang/cue cuelang.org
cue go

encoding/ini: introduce an INI decoder master

INI is used by systems and ecosystems like Windows (win.ini, system.ini), Python (setup.cfg, tox.ini), and Git (.gitconfig), among others. The decoder parses INI files into CUE structs, supporting sections, nested dot-separated sections, comments, and inline comments with quote-aware stripping. This is an initial implementation that covers a common INI subset. It can be extended later with additional Config options to support variant behaviors such as the ":" key-value separator or escape sequences, as different users encounter different INI dialects. Updates #2689. Change-Id: I21105539921ebad17d1d160618fab49cb8f5e510 Signed-off-by: Regina Zhang <ruijzhan@microsoft.com> Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1233862 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Paul Jolly <paul@myitcv.io>


+1113 -3
9 changed files