upd:编码规范
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user