koding / multiconfig

Load configuration from multiple sources in Go
http://godoc.org/github.com/koding/multiconfig
MIT License
454 stars 64 forks source link

Comma separated lists in YAML #64

Closed iamfinky closed 6 years ago

iamfinky commented 6 years ago

Hi

I've just discovered a minor flag in the YAML implementation.

In my yaml file, I have:

somekey: a,b,c,d,e,f

and in my struct, I have:

type test struct {
SomeKey []string
}

The YAML is officially valid, but causes a parse error

rjeczalik commented 6 years ago

Hey @ilithium, multiconfig uses gopkg.in/yaml.v2 for YAML parsing, you may want to report this issue upstream - https://github.com/go-yaml/yaml.