configparser
configparser copied to clipboard
Config ini file parser in Go
looks like `[foo] # comment here` creates a section with fqn `foo] # comment here` I see how this helps with serializing the config back to a file (losslessly) but...
Hello, seems that the library always adds a "global" section, even for empty files. This is surprising because it's not mentioned in the readme, nor in the [api docs](https://pkg.go.dev/github.com/alyu/configparser) The...
https://github.com/alyu/configparser/blob/919f287df7acc74f1a6f529b8dd2a762663590b1/configparser.go#L71 should probably check if `len(line) == 0 `? i've tried to fix it but unfortunately that breaks the tests. haven't been able to figure out yet how the tests...
suggest: equ:="" if len(opt) !=0 {equ="="} parts = append(parts, opt, equ,"\n")