Documentation ¶
Index ¶
Constants ¶
View Source
const ( RelationshipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookRelationship ¶
type BookRelationship struct { XMLName xml.Name `xml:"Relationships"` RootNamespace string `xml:"xmlns,attr"` Relationships []Relationship // contains filtered or unexported fields }
func NewBookRelationship ¶
func NewBookRelationship() *BookRelationship
func (*BookRelationship) AddRelationship ¶
func (w *BookRelationship) AddRelationship(rel Relationship) *BookRelationship
func (*BookRelationship) Filepath ¶
func (w *BookRelationship) Filepath() string
func (*BookRelationship) Marshal ¶
func (w *BookRelationship) Marshal() ([]byte, error)
func (*BookRelationship) NextRId ¶
func (w *BookRelationship) NextRId() string
type BookViews ¶
type Relationship ¶
type Relationship struct { XMLName xml.Name `xml:"Relationship"` // Id 关联的id Id string `xml:"Id,attr"` // Type 关联类型 Type string `xml:"Type,attr"` // Target 目标位置 Target string `xml:"Target,attr"` }
Relationship 关联结构定义
type Sheets ¶
Click to show internal directories.
Click to hide internal directories.