I have the following fragment in an input yaml file: contents: [ '../etst1/date1from1' , 'var/lib/to1' , 'from2' , 'to2' ]
My go struct for the above looks like: type Config struct { Contents []string `yaml:"contents"` } I use the package gopkg.in/yaml.v3 when I unmarshal and immediately reverse Marshal and write it to a file, it is represented in a different syntax as in: contents: - - ../test/date1from1 - /var/lib/to1 - - from2 - to2 I suspect these are equivalent but is there a way I can get a reproduction of the input yaml. If it is not obvious, this is my first exploration of yaml. Pointers appreciated. Srini -- 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/2bf5edf6-e055-44a4-aba5-4e8e0eedda01%40googlegroups.com.