xlsxUtil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: GPL-3.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddArray2Row

func AddArray2Row(rows []string, row *xlsx.Row)

func AddMap2Row

func AddMap2Row(item map[string]string, keys []string, row *xlsx.Row)

func AddMapArray2Sheet

func AddMapArray2Sheet(array []map[string]string, keys []string, sheet *xlsx.Sheet)

func AddSheet

func AddSheet(excel *xlsx.File, sheetName string) *xlsx.Sheet

func AddSheets

func AddSheets(excel *xlsx.File, sheetNames []string)

func AddSlice2Sheet

func AddSlice2Sheet(slice [][]string, sheet *xlsx.Sheet)

func GetRowArray added in v0.0.24

func GetRowArray(idx int, sheet *xlsx.Sheet) (rowArray []string)

Types

type File added in v0.0.20

type File struct {
	File *xlsx.File
}

func NewFile added in v0.0.20

func NewFile() *File

func OpenFile added in v0.0.20

func OpenFile(fileName string) *File

func (*File) AddSheet added in v0.0.20

func (excel *File) AddSheet(sheetName string) *xlsx.Sheet

func (*File) AppendSheet added in v0.0.20

func (excel *File) AppendSheet(sheet xlsx.Sheet, sheetName string) *xlsx.Sheet

func (*File) Save added in v0.0.20

func (excel *File) Save(path string)

Jump to

Keyboard shortcuts

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