func (n External) MarshalYAML() (interface{}, error) {
	if n.Name == "" {
		return n.External, nil
	}
	return map[string]interface{}{
		"name": n.Name,
	}, nil
}
MarshalYAML implements the Marshaller interface.
package yaml
type External struct {
	External bool
	Name     string
}