Documentation ¶
Index ¶
Constants ¶
View Source
const ( ContentTypeCoreProperties = "application/vnd.openxmlformats-package.core-properties+xml" ContentTypeDigitalSignatureCertificate = "application/vnd.openxmlformats-package.digital-signaturecertificate" ContentTypeDigitalSignatureOrigin = "application/vnd.openxmlformats-package.digital-signature-origin" ContentTypeXMLSignature = "application/vnd.openxmlformats-package.digital-signaturexmlsignature+xml" ContentTypeRelationships = "application/vnd.openxmlformats-package.relationships+xml" )
From ECMA-376 Annex F. Standard Namespaces and Content Types
Variables ¶
View Source
var DefaultReadFormatter = &ReadFormatter{}
Functions ¶
Types ¶
type ContentTypeDefault ¶
type ContentTypeOverride ¶
type ContentTypes ¶
type ContentTypes struct { XMLName xml.Name `xml:"http://schemas.openxmlformats.org/package/2006/content-types Types"` Default []ContentTypeDefault Override []ContentTypeOverride }
type Package ¶
type Package struct { Part Types ContentTypes Parts []*Part }
func (*Package) ContentType ¶
func (*Package) FindPartsByRelationOn ¶
func (p *Package) FindPartsByRelationOn(base *Part, filter func(*Relationship) bool) []*Part
type Part ¶
type Part struct { Name string ContentType string GrowthHint string Relationships []*Relationship Content interface{} }
type ReadFormatter ¶
type ReadFormatter struct {
// contains filtered or unexported fields
}
func (*ReadFormatter) RegisterFormat ¶
type RelationType ¶
type RelationType string
const ( RelationTypeCoreProperties RelationType = "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" RelatinoTypeDigitalSignature RelationType = "http://schemas.openxmlformats.org/package/2006/relationships/digitalsignature/signature" RelatinoTypeDigitalSignatureCertificate RelationType = "http://schemas.openxmlformats.org/package/2006/relationships/digitalsignature/certificate" RelatinoTypeDigitalSignatureOrigin RelationType = "http://schemas.openxmlformats.org/package/2006/relationships/digitalsignature/origin" RelationTypeThumbnail RelationType = "http://schemas.openxmlformats.org/package/2006/relationships/metadata/thumbnail" )
From ECMA-376 Annex F. Standard Namespaces and Content Types
type Relationship ¶
type Relationship struct { ID string `xml:"Id,attr"` Type RelationType `xml:",attr"` Target string `xml:",attr"` }
Click to show internal directories.
Click to hide internal directories.