You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v2 adds the CommentSymbols load option, which sets the characters that start a comment line. Your file loads with:
f, err:=ini.Load(data, ini.CommentSymbols(`\`))
name reads as tool, and the \\This is a section line is kept as the section's comment. Pass several characters, e.g., ini.CommentSymbols(";#\\"), to accept more than one.
Available in unknwon.dev/ini/v2, v2.0.0-beta.1 and later. See the migration guide to move from v1.
Activity
unknwon commentedon Nov 11, 2026
v2 adds the
CommentSymbolsload option, which sets the characters that start a comment line. Your file loads with:namereads astool, and the\\This is a sectionline is kept as the section's comment. Pass several characters, e.g.,ini.CommentSymbols(";#\\"), to accept more than one.Available in
unknwon.dev/ini/v2, v2.0.0-beta.1 and later. See the migration guide to move from v1.