xlsx

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 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 {
	Row      int
	Col      int
	Headless bool
}

Dumper represents a csv dumper.

func NewDumper

func NewDumper() *Dumper

NewDumper creates a new dumper.

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.

type Loader

type Loader struct {
	Row       int
	Col       int
	Head      int
	Tail      int
	Index     bool
	Separator string
}

Loader represents a csv loader.

func NewLoader

func NewLoader() *Loader

NewLoader creates a new loader.

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.

Jump to

Keyboard shortcuts

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