table

package
v0.0.0-...-c13b88d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attributes

type Attributes struct{ Attr []xml.Attr }

func (*Attributes) GetAttr

func (el *Attributes) GetAttr(name string) string

func (*Attributes) SetAttr

func (el *Attributes) SetAttr(name, value string)

type ColSpec

type ColSpec struct {
	Name  string `xml:"colname,attr"`
	Num   int    `xml:"colnum,attr"`
	Width string `xml:"colwidth,attr"`
}

type Entry

type Entry struct {
	Attributes
	EntryInner
}

func (*Entry) Bounds

func (e *Entry) Bounds() (start, end string)

func (*Entry) ClearBounds

func (e *Entry) ClearBounds()

func (*Entry) UnmarshalXML

func (el *Entry) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type EntryInner

type EntryInner struct {
	Content []byte `xml:",innerxml"`
}

type Row

type Row struct {
	Attributes
	RowInner
}

func (*Row) UnmarshalXML

func (el *Row) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type RowInner

type RowInner struct {
	Entries []Entry `xml:"entry"`
}

type SettingName

type SettingName struct {
	Attributes
	Text string `xml:",innerxml"`
}

type SettingRow

type SettingRow struct {
	Attributes
	SettingRowInner
}

type SettingRowInner

type SettingRowInner struct {
	Name    SettingName `xml:"settingname"`
	Default string      `xml:"settingdefault"`
	Desc    Entry       `xml:"settingdesc"`
	Example Entry       `xml:"settingsample"`
	Levels  string      `xml:"settinglevels"`
}

type SettingsXML

type SettingsXML struct {
	Attributes
	SettingsXMLInner
}

type SettingsXMLInner

type SettingsXMLInner struct {
	Rows []SettingRow `xml:"setting"`
}

type SimpleRow

type SimpleRow struct {
	Attributes
	SimpleRowInner
}

func (*SimpleRow) UnmarshalXML

func (el *SimpleRow) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type SimpleRowInner

type SimpleRowInner struct {
	Entries []Entry `xml:"stentry"`
}

type SimpleXML

type SimpleXML struct {
	Attributes
	SimpleXMLInner
}

func (*SimpleXML) UnmarshalXML

func (el *SimpleXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type SimpleXMLInner

type SimpleXMLInner struct {
	Head []Entry     `xml:"sthead>stentry"`
	Rows []SimpleRow `xml:"strow"`
}

type TableGroup

type TableGroup struct {
	Attributes
	TableGroupInner
}

func (*TableGroup) ColumnIndex

func (table *TableGroup) ColumnIndex(name string) int

func (*TableGroup) UnmarshalXML

func (el *TableGroup) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type TableGroupInner

type TableGroupInner struct {
	Column []ColSpec `xml:"colspec"`
	Head   []Entry   `xml:"thead>row>entry"`
	Rows   []Row     `xml:"tbody>row"`
}

type XML

type XML struct {
	Attributes
	XMLInner
}

func (*XML) UnmarshalXML

func (el *XML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type XMLInner

type XMLInner struct {
	Groups []TableGroup `xml:"tgroup"`
}

Jump to

Keyboard shortcuts

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