solved my issue. Thanks so much. srini On Thursday, December 26, 2019 at 8:29:19 PM UTC+5:30, howar...@gmail.com wrote: > > 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/d7daceca-8e8f-4cdb-8353-8c4e62f4d7e1%40googlegroups.com.