Go YAML Utilities AsYAML Interface Anything Marshaled as YAML Why YAML? In a word, "inline". You can't do it with any JSON package, and since JSON is YAML there really is no reason not too.