8000
ini file processing in windows, the embedded ; and # are valid values. Take for example an sql connect string or statement in an ini file.
Not being able to allow this makes this package difficult to use in windows environments
It appears that all that would be required is to condition this block of code
i := strings.IndexAny(line, "#;") if i > -1 { p.comment.WriteString(line[i:]) line = strings.TrimSpace(line[:i]) }
beginning at line 228 in parser.go
Will add an option for this.
parser: add LoadOptions.IgnoreInlineComment (#93)
See usage:
ini/ini_test.go
Line 211 in 1730955
Works as advertised! thank you
Activity
[-]request a reopen of #90 Allow embedded ; and # in values[/-][+]Allow embedded ; and # in values[/+]unknwon commentedon Mar 15, 2017
Will add an option for this.
parser: add LoadOptions.IgnoreInlineComment (#93)
unknwon commentedon Mar 15, 2017
See usage:
ini/ini_test.go
Line 211 in 1730955
slaftos commentedon Mar 15, 2017
Works as advertised!
thank you