xlsx

package
v0.0.0-...-4fa6b8f Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOutFile

func GetOutFile(outFilename string, outFilepath string) (file *os.File, err error)

GetOutFile opens a file for writing at outFilename

Types

type File

type File struct {
	Path     string
	XLSXData *x.File
}

File provides access to the xslx data as well as the path

func New

func New(path string) (file *File, err error)

New provides an open xslx.File

func (*File) GenerateCSVFromSheet

func (f *File) GenerateCSVFromSheet(w io.Writer, index int, csvOpts csvOptSetter) error

GenerateCSVFromSheet outputs a delimited file based on the data at the sheet index

func (*File) GenerateCSVsFromAllSheets

func (f *File) GenerateCSVsFromAllSheets(outFilepath string, csvOpts csvOptSetter, lowerCaseOutputfiles bool, sheetNamePrefix string) error

GenerateCSVsFromAllSheets iterates through all sheets and saves them as CSVs using their name

func (*File) SheetCount

func (f *File) SheetCount() int

SheetCount provides the number of sheets found in the workbook

Jump to

Keyboard shortcuts

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