excelutil

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: MIT Imports: 2 Imported by: 0

README

excelutil

Utility library for working with Excel documents. Uses excelize library

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdvanceCol

func AdvanceCol(current string, step int) (string, error)

func AdvanceRow

func AdvanceRow(current string, step int) (string, error)

func Cr2s

func Cr2s(c, r int) string

func S2cr

func S2cr(s string) (int, int)

func WriteRow2Excel

func WriteRow2Excel(x *excelize.File, sheet string, row []interface{}, c, r int)

func WriteStringRow2Excel

func WriteStringRow2Excel(x *excelize.File, sheet string, row []string, c, r int)

Types

type ExcelModel

type ExcelModel struct {
	// contains filtered or unexported fields
}

func NewExcelModel

func NewExcelModel(h []string, l int) *ExcelModel

func (*ExcelModel) AddRow

func (e *ExcelModel) AddRow(row map[string]interface{}) error

func (*ExcelModel) Write2File

func (e *ExcelModel) Write2File(f *excelize.File, sheetName, topLeft string) (string, error)

Jump to

Keyboard shortcuts

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