xlsx

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dumper

type Dumper struct {
	// contains filtered or unexported fields
}

Dumper represents a csv dumper.

func NewDumper

func NewDumper() *Dumper

NewDumper creates a new dumper.

func (*Dumper) Col

func (a *Dumper) Col(o int) *Dumper

Col set the row option.

func (*Dumper) DumpBook

func (a *Dumper) DumpBook(frame *dt.Frame, book *xlsx.Book, sheet string) error

DumpBook dumps the frame to book.

func (*Dumper) DumpFile

func (a *Dumper) DumpFile(frame *dt.Frame, name string, sheet string) error

DumpFile dumps the frame to file.

func (*Dumper) DumpSheet

func (a *Dumper) DumpSheet(frame *dt.Frame, sheet *xlsx.Sheet) error

DumpSheet dumps the frame to sheet.

func (*Dumper) DumpWriter

func (a *Dumper) DumpWriter(frame *dt.Frame, w io.Writer, name string, sheet string) error

DumpWriter dumps the frame to writer.

func (*Dumper) DumpZip

func (a *Dumper) DumpZip(frame *dt.Frame, zw *zip.Writer, name string, sheet string) error

DumpZip dumps the frame to zip writer.

func (*Dumper) Headless

func (a *Dumper) Headless(o bool) *Dumper

Headless set the headless option.

func (*Dumper) Row

func (a *Dumper) Row(o int) *Dumper

Row set the row option.

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

Loader represents a csv loader.

func NewLoader

func NewLoader() *Loader

NewLoader creates a new loader.

func (*Loader) Col

func (a *Loader) Col(o int) *Loader

Col sets the col option.

func (*Loader) Head

func (a *Loader) Head(o int) *Loader

Head sets the head option.

func (*Loader) Index

func (a *Loader) Index(o bool) *Loader

Index sets the index option.

func (*Loader) LoadBook

func (a *Loader) LoadBook(book *xlsx.Book, sheet string) (*dt.Frame, error)

LoadBook loads a frame from the book.

func (*Loader) LoadFile

func (a *Loader) LoadFile(name string, sheet string) (*dt.Frame, error)

LoadFile loads a frame from the file.

func (*Loader) LoadReader

func (a *Loader) LoadReader(r io.Reader, sheet string) (*dt.Frame, error)

LoadReader loads a frame from the io.Reader.

func (*Loader) LoadSheet

func (a *Loader) LoadSheet(sheet *xlsx.Sheet) (*dt.Frame, error)

LoadSheet loads a frame from the sheet.

func (*Loader) LoadZip

func (a *Loader) LoadZip(zr *zip.Reader, sheet string) (*dt.Frame, error)

LoadZip loads a frame from the zip.Reader.

func (*Loader) Row

func (a *Loader) Row(o int) *Loader

Row sets the row option.

func (*Loader) Separator

func (a *Loader) Separator(o string) *Loader

Separator sets the separator option.

func (*Loader) Tail

func (a *Loader) Tail(o int) *Loader

Tail sets the tail option.

Jump to

Keyboard shortcuts

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