You want to add the flow directive to the struct's attributes. From the 
docs:

flow         Marshal using a flow style (useful for structs,
             sequences and maps).

type Config struct {
     Contents []string `yaml:"contents,flow"`
}

Howard

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/65141c7b-c39d-4cd0-af40-d69203e6371d%40googlegroups.com.

Reply via email to