package
Version:
v0.4.1
Opens a new window with list of versions in this module.
Published: Dec 16, 2024
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func ReadExcelToStruct(filePath string, result interface{}) (int, error)
ReadExcelToStruct 从Excel文件读取数据到结构体切片
func WriteStructToExcel(filePath string, data interface{}) error
type TestModel struct {
AreaCode int64 `excel:"label:areaCode;width:100"`
Reason time.Time `excel:"label:reason;"`
Mobile int64 `excel:"label:mobile;"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.