easy_excel

package
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadExcelToMap

func ReadExcelToMap(filePath string, result *[]map[string]string) error

func ReadExcelToStruct

func ReadExcelToStruct(filePath string, result interface{}) (int, error)

ReadExcelToStruct 从Excel文件读取数据到结构体切片

func WriteStructToExcel

func WriteStructToExcel(filePath string, data interface{}) error

Types

type TestModel

type TestModel struct {
	AreaCode int64     `excel:"label:areaCode;width:100"`
	Reason   time.Time `excel:"label:reason;"`
	Mobile   int64     `excel:"label:mobile;"`
}

Jump to

Keyboard shortcuts

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