移出不使用的信息

This commit is contained in:
Mr.Li 2023-04-23 18:16:12 +08:00
parent f07f052c35
commit 07e3cce332
2 changed files with 4 additions and 14 deletions

View File

@ -2,26 +2,17 @@ package main
import (
"excel_export/biz/config"
"excel_export/biz/util"
"excel_export/cmd/cmd"
"github.com/tealeg/xlsx/v3"
"os"
"time"
)
var Config *config.Config
func main() {
p := util.NewProf()
defer func() {
p.Close()
}()
//设置默认格式
xlsx.DefaultDateTimeOptions = xlsx.DateTimeOptions{
Location: time.UTC,
ExcelTimeFormat: "yyyy-m-d h:mm:ss",
}
//p := util.NewProf()
//defer func() {
// p.Close()
//}()
path, _ := os.Getwd()
Config = config.LoadConfig(path + "/config")

1
go.mod
View File

@ -4,7 +4,6 @@ go 1.17
require (
github.com/spf13/cobra v1.6.1 // direct
github.com/tealeg/xlsx/v3 v3.2.4 // direct
gorm.io/driver/mysql v1.4.5 // direct
gorm.io/gorm v1.24.3 // direct
github.com/flytam/filenamify v1.1.2 // direct