Versions in this module Expand all Collapse all v0 v0.3.1 Dec 30, 2024 v0.3.0 Dec 27, 2024 Changes in this version + var Charsets = make(map[string]func(io.Reader) io.Reader) + var ErrInvalidFile = errors.New("xlsx: invalid file") + var ErrInvalidTemplate = errors.New("xlsx: invalid template") + var ErrUnknownCharset = errors.New("xlsx: unknown charset") + func CellIdx(ref string) (ridx int, cidx int) + func CellRef(i, j int) string + func CharsetReader(charset string, r io.Reader) (io.Reader, error) + func ColIdx(ref string) int + func ColRef(j int) string + func RangeIdx(ref string) (ridx1, cidx1 int, ridx2, cidx2 int) + func RangeRef(ridx1, cidx1 int, ridx2, cidx2 int) string + func RowIdx(ref string) int + func RowRef(i int) string + type Book struct + func LoadZIP(zr *zip.Reader) (*Book, error) + func (b *Book) Clone() *Book + func (b *Book) DumpZIP(zw *zip.Writer) error + func (b *Book) MarshalXML(encoder *xml.Encoder, start xml.StartElement) error + func (b *Book) Sheets() []*Sheet + func (b *Book) UnmarshalXML(decoder *xml.Decoder, start xml.StartElement) error + type Cell struct + func (c *Cell) Bool() bool + func (c *Cell) Float() float64 + func (c *Cell) Int() int + func (c *Cell) IsBlank() bool + func (c *Cell) MarshalXML(encoder *xml.Encoder, start xml.StartElement) error + func (c *Cell) Primary() *Cell + func (c *Cell) SetBool(v bool) + func (c *Cell) SetFloat(v float64) + func (c *Cell) SetInt(v int) + func (c *Cell) SetString(v string) + func (c *Cell) SetTime(v time.Time) + func (c *Cell) String() string + func (c *Cell) Time() time.Time + func (c *Cell) UnmarshalXML(decoder *xml.Decoder, start xml.StartElement) error + type ComplexFragment struct + func (cf *ComplexFragment) Clone(ctx map[*Cell]*Cell) Fragment + func (cf *ComplexFragment) Fill(sheet *Sheet, level int, data reflect.Value) error + func (cf *ComplexFragment) Key(level int) string + type ContentTypes struct + Defaults []*Element + Overrides []Override + XMLName xml.Name + func (c *ContentTypes) Add(pname string, ctype string) + type Dimension struct + Ref string + type Element struct + Attrs []xml.Attr + InnerXML []byte + type Entry struct + func (e *Entry) Decode(v any, replace bool) error + func (e *Entry) Encode(name string, zw *zip.Writer) error + type Fragment interface + Clone func(ctx map[*Cell]*Cell) Fragment + Fill func(sheet *Sheet, level int, data reflect.Value) error + Key func(level int) string + func BuildFragment(sheet *Sheet) (Fragment, error) + type MergeCell struct + Ref string + type MergeCells struct + Count int + Entries []*MergeCell + type Override struct + ContentType string + PartName string + type Rel struct + ID string + Target string + Type string + type Rels struct + Entries []Rel + XMLName xml.Name + func (r *Rels) Add(rtype, target string) + func (r *Rels) Find(rtype string) string + func (r *Rels) Get(id string) string + type Row struct + func (r *Row) Cells() []*Cell + func (r *Row) ICell(cidx int) *Cell + func (r *Row) IsBlank() bool + func (r *Row) MarshalXML(encoder *xml.Encoder, start xml.StartElement) error + func (r *Row) UnmarshalXML(decoder *xml.Decoder, start xml.StartElement) error + type SSI struct + SSRs []SSR + Text Text + func (ssi *SSI) IsRich() bool + func (ssi *SSI) String() string + type SSR struct + Pr *Element + Text Text + type SST struct + func (sst *SST) Get(i string) *SSI + func (sst *SST) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (sst *SST) Put(s string) string + func (sst *SST) Reset() + func (sst *SST) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type Sheet struct + func (s *Sheet) Fill() + func (s *Sheet) IRow(ridx int) *Row + func (s *Sheet) MarshalXML(encoder *xml.Encoder, start xml.StartElement) error + func (s *Sheet) Name() string + func (s *Sheet) Rows() []*Row + func (s *Sheet) UnmarshalXML(decoder *xml.Decoder, start xml.StartElement) error + type SheetInfo struct + Attrs []xml.Attr + ID xml.Attr + Name string + type SimpleFragment struct + func (sf *SimpleFragment) Clone(ctx map[*Cell]*Cell) Fragment + func (sf *SimpleFragment) Fill(sheet *Sheet, level int, data reflect.Value) (err error) + func (sf *SimpleFragment) Key(level int) string + type Text string + func (a Text) MarshalXML(e *xml.Encoder, start xml.StartElement) error