xmlprivate

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2019 License: MIT Imports: 1 Imported by: 2

Documentation

Overview

Package privxml exists so that structs can be publicly exported for Go's build-in XML parser. We do not want these to be considered part of the xlsx package's public interface, so we move them into their own package where they are less likely to be accessed by a client programmer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CellXML

type CellXML struct {
	R            string       `xml:"r,attr" json:"ref"`
	T            string       `xml:"t,attr" json:"type"`
	V            string       `xml:"v" json:"value"`
	InlineString InlineString `xml:"is" json:"inline_string"`
	// contains filtered or unexported fields
}

func ParseCellXML

func ParseCellXML(s string) (CellXML, error)

type ContentTypeItem

type ContentTypeItem struct {
	ContentType string `xml:"ContentType,attr""`
	Extension   string `xml:"Extension,attr"`
	PartName    string `xml:"PartName,attr"`
}

type ContentTypes

type ContentTypes struct {
	XMLName   xml.Name          `xml:"Types"`
	Defaults  []ContentTypeItem `xml:"Default"`
	Overrides []ContentTypeItem `xml:"Override"`
}

type InlineString

type InlineString struct {
	Str string `xml:"t" json:"string_value"`
	// contains filtered or unexported fields
}

type Rel

type Rel struct {
	ID     string `xml:"Id,attr"`
	Target string `xml:"Target,attr"`
	Type   string `xml:"Type,attr"`
}

type Rels

type Rels struct {
	XMLName xml.Name `xml:"Relationships"`
	Rels    []Rel    `xml:"Relationship"`
}

type Sheet

type Sheet struct {
	XMLName xml.Name `xml:"sheet"`
	Name    string   `xml:"name,attr"`
	SheetID string   `xml:"sheetId,attr"`
	RelsID  string   `xml:"id,attr"`
}

type Sheets

type Sheets struct {
	XMLName xml.Name `xml:"sheets"`
	Sheets  []Sheet  `xml:"sheet"`
}

type Workbook

type Workbook struct {
	XMLName xml.Name `xml:"workbook"`
	Sheets  Sheets   `xml:"sheets"`
}

func (*Workbook) FindSheetByRelID

func (w *Workbook) FindSheetByRelID(ID string) (sheetIndex int, sheet Sheet)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL