Documentation ¶
Index ¶
- func Create(sheetName string, data interface{}, columns []types.ColumnInfo) (*xlsx.File, string, error)
- func CreateSheet(file *xlsx.File, sheetName string, data interface{}, ...) (*xlsx.Sheet, error)
- func Export(filename string, c *gin.Context, file *xlsx.File)
- func ExportSheet(c *gin.Context, sheetName string, data interface{}, columns []types.ColumnInfo)
- func GetColumnFromSheet(sheet *xlsx.Sheet) ([]types.ColumnInfo, error)
- func GetDataFromSheet(sheet *xlsx.Sheet, startRowNum int, columns []types.ColumnInfo) ([]map[string]interface{}, error)
- type ColumnInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSheet ¶
func ExportSheet ¶
func ExportSheet(c *gin.Context, sheetName string, data interface{}, columns []types.ColumnInfo)
func GetColumnFromSheet ¶
func GetColumnFromSheet(sheet *xlsx.Sheet) ([]types.ColumnInfo, error)
func GetDataFromSheet ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.