go-yaml/yaml — pull request #33 by rogpeppe (2014-09-15 17:00:56+00:00)
Title: marshal top level nil correctly

This prevents yaml.Marshal(nil) from panicking.