upd:编码规范

This commit is contained in:
2025-02-26 21:14:42 +08:00
parent b1d07345b1
commit 2873327ba5
23 changed files with 1052 additions and 933 deletions
+5 -4
View File
@@ -1,8 +1,8 @@
package main
import (
"OdMediaPicker/core"
"OdMediaPicker/vars"
"ImageVideoResolutionPickerTool/core"
"ImageVideoResolutionPickerTool/vars"
_ "embed"
"fmt"
_ "image/gif" // 导入gif支持
@@ -13,11 +13,14 @@ import (
)
func main() {
fmt.Println("=== 警告:该程序会改变目录结构,将在5秒后开始执行")
time.Sleep(time.Second * 5)
rootDir, err := os.Getwd()
if err != nil {
fmt.Println("=== 获取当前路径异常", err)
return
}
rootDir = "E:\\DGD\\d20250424\\video"
scanner := core.FileScanner{}
scanner.DoScan(rootDir)
scanner.DoFilter()
@@ -27,6 +30,4 @@ func main() {
if len(vars.GlobalVideoPathList) > 0 {
core.DoHandleVideo(rootDir)
}
fmt.Println("=== 5s后自动退出")
time.Sleep(time.Second * 5)
}