excel

package
v1.30.9 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Excel

type Excel struct {
	*excelize.File
	Data    interface{}
	Model   interface{}
	Headers []string
	Mapper  map[string]string

	Value Mapper
	// contains filtered or unexported fields
}

func ExportExcel

func ExportExcel(model, data interface{}) (e *Excel, err error)

func NewExcel

func NewExcel(model interface{}) *Excel

func (*Excel) Export

func (f *Excel) Export(data interface{}) (err error)

func (*Excel) Point

func (f *Excel) Point(str string)

Point use to set the starting point for exporting data

type Mapper

type Mapper func(interface{}, string) (interface{}, error)

Jump to

Keyboard shortcuts

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