It defaults to the lowercased field name, because that's by far the
most common convention on yaml files, but you can tweak that behavior
by using the field tag as usual. The documentation describes it [1]:
"""
In the case of struct values, only exported fields will be serialized.
The lowercased field name is used as the key for each exported field,
but this behavior may be changed using the respective field tag. The
tag may also contain flags to tweak the marshalling behavior for the
field. Conflicting names result in a runtime error. The tag format
accepted is: (...)
"""
[1]
http://godoc.org/launchpad.net/goyaml#Marshal
gustavo @
http://niemeyer.net