移出不使用的信息
This commit is contained in:
parent
f07f052c35
commit
07e3cce332
17
cmd/main.go
17
cmd/main.go
|
|
@ -2,26 +2,17 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"excel_export/biz/config"
|
"excel_export/biz/config"
|
||||||
"excel_export/biz/util"
|
|
||||||
"excel_export/cmd/cmd"
|
"excel_export/cmd/cmd"
|
||||||
"github.com/tealeg/xlsx/v3"
|
|
||||||
"os"
|
"os"
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var Config *config.Config
|
var Config *config.Config
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
p := util.NewProf()
|
//p := util.NewProf()
|
||||||
defer func() {
|
//defer func() {
|
||||||
p.Close()
|
// p.Close()
|
||||||
}()
|
//}()
|
||||||
|
|
||||||
//设置默认格式
|
|
||||||
xlsx.DefaultDateTimeOptions = xlsx.DateTimeOptions{
|
|
||||||
Location: time.UTC,
|
|
||||||
ExcelTimeFormat: "yyyy-m-d h:mm:ss",
|
|
||||||
}
|
|
||||||
|
|
||||||
path, _ := os.Getwd()
|
path, _ := os.Getwd()
|
||||||
Config = config.LoadConfig(path + "/config")
|
Config = config.LoadConfig(path + "/config")
|
||||||
|
|
|
||||||
1
go.mod
1
go.mod
|
|
@ -4,7 +4,6 @@ go 1.17
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/spf13/cobra v1.6.1 // direct
|
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/driver/mysql v1.4.5 // direct
|
||||||
gorm.io/gorm v1.24.3 // direct
|
gorm.io/gorm v1.24.3 // direct
|
||||||
github.com/flytam/filenamify v1.1.2 // direct
|
github.com/flytam/filenamify v1.1.2 // direct
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue