It will fail to load string configure as below, with error error while parsing configuration: missing comma! at: 4:11, values should have comma or ASCII newline ('\n') between them.
It will work well if I change to use // comment 2.
hoconString = `
key1 {
arr = [ 1, 2, # this is comment 1
3, 4 # this is comment 2
]
}`
_, err = hocon.ParseString(hoconString)
if err != nil {
log.Println("error while parsing configuration: ", err)
}
It will fail to load string configure as below, with error
error while parsing configuration: missing comma! at: 4:11, values should have comma or ASCII newline ('\n') between them
.It will work well if I change to use
//
comment 2.