// MustMarshalToDoc marshals the given object to a Document.
MustMarshalToDoc marshals the given object to a Document.
// MustMarshalToDoc marshals the given object to a Document .
func MustMarshalToDoc(obj interface{}) Document {
	doc, err := MarshalToDoc(obj)
	if err != nil {
		panic(err)
	}
	return doc
}
func MustMarshalToDoc ( obj interface { } ) Document { doc , err := MarshalToDoc ( obj ) if err != nil { panic ( err ) } return doc }
MustMarshalToDoc marshals the given object to a Document.
MustMarshalToDoc marshals the given object to a Document .