excel

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterConvertFunc

func RegisterConvertFunc(name string, fn ConvertFunc)

func TimeStampToDate

func TimeStampToDate(p ExportProfile, val reflect.Value) (interface{}, error)

func WriteHeaderToExcel

func WriteHeaderToExcel(f *excelize.File, sheetName string, profiles []ExportProfile)

func WriteToExcel

func WriteToExcel(sheetName string, profiles []ExportProfile, obj interface{}) ([]byte, error)

Types

type ConvertFunc

type ConvertFunc func(ExportProfile, reflect.Value) (interface{}, error)

type ExportProfile

type ExportProfile struct {
	Index       int
	Hide        bool
	FieldName   string
	DisplayName string
	Convert     string
}

Jump to

Keyboard shortcuts

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