FAQ
Try making your yaml a pointer, ie &Yaml{}. Right now the call to the UnmarshalYAML method makes a copy, so the "yaml" passed to the fmt.Println is still uninitialized.

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 11 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedFeb 15, '15 at 7:07p
activeFeb 16, '15 at 4:06a
posts11
users6
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase