xls2txt

package module
v0.0.0-...-e859a3b Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFileXLS

func IsFileXLS(data []byte) bool

IsFileXLS checks if the data indicates a XLS file XLS has a signature of D0 CF 11 E0 A1 B1 1A E1

func WrapCSVCell

func WrapCSVCell(cell string) string

func XLS2CSV

func XLS2CSV(reader io.ReadSeeker, sheetNumber int) ([]byte, error)

XLS2CSV converts selected sheet of the XLS file into CSV format.

func XLS2Cells

func XLS2Cells(reader io.ReadSeeker) (cells []string, err error)

XLS2Cells converts an XLS file to individual cells

func XLS2Text

func XLS2Text(reader io.ReadSeeker, writer io.Writer, size int64) (written int64, err error)

XLS2Text extracts text from an Excel sheet. It returns bytes written. The parameter size is the max amount of bytes (not characters) to write out. The whole Excel file is required even for partial text extraction. This function returns no error with 0 bytes written in case of corrupted or invalid file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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