31 lines
755 B
Go
31 lines
755 B
Go
|
// Package excel...
|
||
|
//
|
||
|
// Description : excel...
|
||
|
//
|
||
|
// Author : go_developer@163.com<白茶清欢>
|
||
|
//
|
||
|
// Date : 2021-11-19 2:05 下午
|
||
|
package excel
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
// TestCreate_GenerateSheet ...
|
||
|
//
|
||
|
// Author : go_developer@163.com<白茶清欢>
|
||
|
//
|
||
|
// Date : 2:05 下午 2021/11/19
|
||
|
func TestCreate_GenerateSheet(t *testing.T) {
|
||
|
e := NewExcel()
|
||
|
sheetList := []SheetData{
|
||
|
{true, "sheet11111", [][]interface{}{[]interface{}{123, 345, 678}}},
|
||
|
{false, "sheet2222", [][]interface{}{[]interface{}{123, 345, 678}}},
|
||
|
{false, "sheet3333", [][]interface{}{[]interface{}{123, 345, 678}}},
|
||
|
{false, "sheet44444", [][]interface{}{[]interface{}{123, 345, 678}}},
|
||
|
}
|
||
|
fmt.Println(e.GenerateSheet(sheetList))
|
||
|
fmt.Println(e.Save("./test.xlsx"))
|
||
|
}
|