excel

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Name   string
	Sheets []Sheet
}

Data represents the information about excel data

type DataRow

type DataRow struct {
	Data []KeyValue
}

DataRow represents the information about excel row

type Excel

type Excel interface {
	ReadSample() (*Data, error)
	ReadSheet(sheetName string) (*Sheet, error)
	ReadRow(sheetName string, exec func(row DataRow) error) error
}

Excel represents the functionalities required to read and write Excel files

type FileInfo

type FileInfo struct {
	Name       string
	FilePath   string
	FileReader io.Reader
}

FileInfo represents the information about a file

type KeyValue

type KeyValue struct {
	Header string
	Value  string
}

KeyValue represents the information about each cell in a sheet

type Sheet

type Sheet struct {
	Name    string
	DataRow []DataRow
}

Sheet represents the information about excel sheet

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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