config: don't comment sections be default

This commit is contained in:
Łukasz Magiera 2019-12-16 12:46:52 +01:00
parent d58569c406
commit 5154f525d3

View File

@ -44,6 +44,7 @@ func ConfigComment(t interface{}) ([]byte, error) {
}
b := buf.Bytes()
b = bytes.ReplaceAll(b, []byte("\n"), []byte("\n#"))
b = bytes.ReplaceAll(b, []byte("#["), []byte("["))
return b, nil
}